Chris Bolton
Chris Bolton

Reputation: 2926

Rails _only_ rendering layout and not page

kind of have a weird problem cropping up here... whenever I define a layout, rails only renders the layout and forgets about the rest of the page. Any ideas as to what might cause this sort of behavior?

i.e. render 'page' will render the page, but render 'page', :layout => 'header' will only render the header, which can be seen below along with the controller.

Upvotes: 0

Views: 267

Answers (1)

Simon
Simon

Reputation: 25983

Are you using <% yield %> instead of <%= yield %>? I've wasted a few hours on that typo, and the symptoms are the same as you're describing.

Upvotes: 2

Related Questions