I have been using template inheritance wo any problem
I have defined an :admins namespace ( used w Devise
authentication) , so I have controllers defined in admins
/admins
/sessions_controller
/plans_controller
/categories_controller
In my ''administration'' layout I am using a partial
#side
= render "side"
I can define this partial in :
views/application
views/admins/plans
views/admins/categories
I wonder if I can have a partial at the namespace level ? I can
defined it in a shared folder
views/application
views/admins/shared
views/admins/plans
views/admins/categories
.. but the I''ll have to write = render "admins/shared/side"
in the
layout , and views/admins/plans will not inheritate
feedback welcome
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.