added dynamic_snippets #13

wants to merge 7 commits into


None yet
2 participants

akennedy commented Jan 14, 2012

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 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