Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix custom page view template preview. #2219

Merged
merged 1 commit into from
May 2, 2013

Conversation

j15e
Copy link
Contributor

@j15e j15e commented Mar 20, 2013

Using render_options[:action] = page.view_template does not work with refactored pages preview controller. Instead, I set relative template path (refinery/pages) is set for Pages::PreviewController (not root path as fixed in #2146)

I moved all the "default template logic" to the common Pages::RenderOptions module although not necessary for the original PagesController.

Moved default template logic to the common Pages::RenderOptions module.

Relative template path (refinery/pages) is set fore Pages::PreviewController (not root path as fixed in refinery#2146)
@j15e
Copy link
Contributor Author

j15e commented Mar 20, 2013

The test fails because of rails 3.2.13 see #2221

@parndt
Copy link
Member

parndt commented May 2, 2013

Tests look good now thanks!

parndt added a commit that referenced this pull request May 2, 2013
Fix custom page view template preview.
@parndt parndt merged commit 9e64638 into refinery:master May 2, 2013
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