On Thursday, August 7, 2014 7:48:21 PM UTC+1, Roelof W. wrote:
How can this be happen ?
You don’t say how you’re arriving at this result but it sounds like maybe
you’re rendering with a layout when you didn’t intend to (render :layout
=>
nil will suppress the layout)
On Friday, August 8, 2014 8:32:18 AM UTC+1, Roelof W. wrote:
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)
Op vrijdag 8 augustus 2014 09:54:13 UTC+2 schreef Frederick C.:
end
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.