Every Ajax thing that is done by Rails can be done without its
helpers, and generally pretty easily.  I would recommend looking up
the documentation on Prototype and using that to post to the proper
action.  It's what Rails does behind the scenes anyway.

As far as integration of your own controllers with Radiant pages and
snippets, well, it's not entirely seamless.  Radiant pages are models,
and the rendering of them happens mostly in the model layer.  The page
being rendered has access to the request and response objects, but the
page rendering your snippet may or may not.

I'm sending this response to the mailing list too.  Please direct all
further questions there.

Sean

On 10/3/07, kranthi reddy <[EMAIL PROTECTED]> wrote:
>
> Hey Sean,
> I want to create a snippet with some rails code in it. Can i do it.I want to
> render the same part of the code on the bottom of everypage.I thought footer
> would be best way but then not able to incorporate my rails code in that.I
> have some ajax stuff in my code. I have two controllers which are our of
> admin directory, both are interconnnected.I'm not able to redirect my action
> in them proprely from snippets.
> please suggest me some way to incorporate ajax in my snippets.
> Thank you,
> with regards,
> kranthi
>
> On 9/27/07, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> > Kranthi,
> >
> > Although I normally answer most questions on the list, it is best to
> > post them to the mailing list anyway.
> >
> > But in answer to your question, yes, you can have controllers that
> > don't have the admin/ prefix or directory.  I do it all the time.  You
> > have to make sure you hook up the routes correctly in your extension,
> > however.  For example, if I have a Widgets controller, I might add
> > these routes to my extension:
> >
> > define_routes do |map|
> >   map.connect "widgets/:action/:id", :controller => "widgets"
> > end
> >
> > Any routes you might write in a normal Rails routes.rb file will work,
> > just be sure you don't clobber some of the built-in routes to
> > Radiant's controllers.
> >
> > Sean
> >
> > On 9/27/07, kranthi reddy <[EMAIL PROTECTED]> wrote:
> > > Hello Seancribbs,
> > > This is kranthi.I'm new to radaint cms and have some queries .I would
> > > require your help for solving them.I would be delighted to work under
> your
> > > guidence.
> > > My prime query is that can we access a controller which is not created
> under
> > > admin forlder and something like this,
> > >   vendor/<extension-name>/app/controller/<some name> .
> > > I have been trying to fix this from quite long time and i feel now this
> is
> > > high time to seek some help from some one who is really good in radiant
> cms.
> > > hoping a qucik replu from you,
> > > With regards,
> > > kranthi
> > >
> > >
> >
>
>
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to