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@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.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedNov 21, '11 at 5:09p
activeNov 21, '11 at 5:09p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Erwin: 1 post

People

Translate

site design / logo © 2021 Grokbase