[Rails] Rails 3 - Loading a Subnav with Ajax… Which controller owns a subnav?
Once my Rails 3 app is loaded, a user can click an item which needs to
then load a dynamic subnav.
My thinking is (since it needs to be dynamic) is onClick to make a
jQuery AJAX call to the server and then to inject the HTML response
into a DIV on the page...
What I'd like your advice on is how/where the subnav logic should live
in the rails app, as I don't have a navigation controller or view...
But maybe I should have one?
Do I create a navigation controller? Or use the application
controller? I also have a pages controller that I use for the landing
page, about, contact, etc...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home