Skip to content

Conversation

@akennedy
Copy link
Contributor

There is already a pull request for this issue from @rochgs, but I just thought you may be interested in how I did it. Also updated content_of method to allow body_content_left and body_content_right.

use content_of(@page, :part, yield(:part)) when you need it to work with other engines such as blog

@rochgs
Copy link

rochgs commented Feb 16, 2012

@akennedy proposal is very similar to mine right now. My pull request is seriously obsolete. In a first modification I also moved the rendering method to the PagesHelper but, finally, I moved it to the ApplicationHelper so it could be easily accessed from everywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants