Is it possible to keep rjs and rhtml files in different subdirectories of a view, for purely organizational reasons? On a very AJAX heavy view, there are a LOT of partials, and it just gets a bit messy. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dave Smith wrote:> Is it possible to keep rjs and rhtml files in different subdirectories > of a view, for purely organizational reasons? On a very AJAX heavy > view, there are a LOT of partials, and it just gets a bit messy.If you call the ALL your views directly using "render :action / :partial => :blah" I don''t see why not. But otherwise I will have to assume (since I really don''t know for sure) you''re breaking the conventions issued by Rails.. and Rails is all about "Coding by Convention". (I''d love to see the page that has THAT many partials being called.) Wish I could be more helpful. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> (I''d love to see the page that has THAT many partials being called.)Well, assume a user has a list of things. There is a partial for the entire list, so that you can delete a couple at a time and re-render the entire list. There is also a partial for each row. That pattern repeats for several other lists of things associated with the user. Then there are some selection/editing containers that are loaded asynchronously when an item is selected, and their contents are in partials. And, of course, those partials might in turn have their own listings of things, which can be asynchronously manipulated. (This app is more of a local intranet thing that looks more like a desktop app than a web app. To be honest, it evolved into AJAX overkill, and I''m regretting it.) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can anyone recommend a good resource for learning good MVC design techniques for working with AJAX? I have some questions about what is the "correct" way to delegate responsibility between controllers, etc., and how much to assume about the callers and associated views from within ajaxy controllers. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---