I like to nest my view folders the same way as my resources.
So, if I have:
map.resources :foos do |foos|
foos.resources :bars
end
map.resources :sums
Then I'll structure my view folders like:
views/
foos/
bars/
sum/
To make this work, I need a tiny little extra line of code in the nested
controller to tell rails where to look for the templates. Specifically:
prepend_view_path "app/views/foos"
Just curious about people's views on this. Any feedback/criticisms on
this method?
Thanks,
~ Mark
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---