My custom layout file for the AdminController in in
views/layouts/admin.html.erb and has the following code:
<% content_for :secondary_nav do %>
<%= sub_navigation [:prospect_statuses, :client_statuses,
:business_statuses, :discounts, :features, :links, :user_types] %>
<% end %>
<%= render "layouts/application" %>
This works fine in Rails 2.1.2. However, in Rails 2.3.2, I get the
following error:
Showing app/views/layouts/admin.html.erb where line #4 raised:
Missing layout layouts/_application in view path app/views
Extracted source (around line #4):
1: <% content_for :secondary_nav do %>
2: <%= sub_navigation [:prospect_statuses, :client_statuses,
:business_statuses, :discounts, :features, :links, :user_types] %>
3: <% end %>
4: <%= render "layouts/application" %>
Can''t figure this out. Please help.
Thanks.
Bharat
--
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
-~----------~----~----~----~------~----~------~--~---