Ruby on Rails
Saturday, July 25, 2015
You could just set some session variable at the point of controller => show. And test at your rendering. However, I think that you are better off studying and learning methods associated with your Controller middleware...
Liz
On Saturday, July 25, 2015 at 3:46:10 PM UTC-4, Ruby-Forum.com User wrote:
-- Liz
On Saturday, July 25, 2015 at 3:46:10 PM UTC-4, Ruby-Forum.com User wrote:
Hi folks
Is there any way to change / restrict the application layout for certain
views?
For example, I don't want to render the header for a certain view, is
there any code such as:
<% if View != show.html.erb%>
<%= render 'layouts/header' %>
<% end %>
Thanks in advance
Jason
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a030d1a0-cbda-453e-a91c-03cffd4162fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment