Op vrijdag 8 augustus 2014 09:54:13 UTC+2 schreef Frederick Cheung:
>
> On Friday, August 8, 2014 8:32:18 AM UTC+1, Roelof Wobben wrote: 
> > I arrive at this result this way ? 
> > 
> > 
> > Dashboard-controller.rb  : 
> > 
> > 
> > class DashboardController < ApplicationController 
> >   def show 
> >   end 
> > end 
> > 
>
> That does sound like your problem then. By default whatever is in your 
> show.erb file will be wrapped with what's in 
> app/view/layouts/application.html.erb 
>
> You can either: 
> - not use the layout: either do render :layout => false in your action (or 
> do layout false at the controller level 
> - remove the head section from show.html.erb and change 
> application.html.erb to match (assuming that you want whatever is in the 
> head of this page to be in the head of all pages) 
>
> Fred



Thanks, 

I did not realize that when I do something in another view directory 
(app/views/dasboard)  the layouts/application,html.erb is used. 
So I can put most of it into that file and put the part between the body in 
show.html.erb. 

 Roelof

-- 
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+unsubscr...@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/244b1bc1-9709-43e6-9eff-5330fbbf31bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to