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

copywriting breaks page preview #53

Open
localstatic opened this issue Oct 18, 2013 · 1 comment
Open

copywriting breaks page preview #53

localstatic opened this issue Oct 18, 2013 · 1 comment

Comments

@localstatic
Copy link

When editing a page whose view template uses the copywriting helper, any attempt to use Refinery's "Preview" function fails with the following error:

NoMethodError in Refinery/pages/admin/preview#show

Showing [path-to-my-app]/refinery-sandbox/app/views/refinery/pages/show.html.erb where line #1 raised:

undefined method `copywriting' for #<#<Class:0x007ff1d01a6c28>:0x007ff1c9609010>
Extracted source (around line #1):

1: <% test_phrase = copywriting("Test Phrase", { :page => @page, :scope => "Test", :phrase_type => 'string', :default => 'foo' }) %>
2: 
3: <%= test_phrase %>
4: 
@daveham
Copy link

daveham commented Nov 27, 2013

I ran into this as well. A workaround is to include the helper from copywriting into your application helper:

module ApplicationHelper
  include Refinery::Copywriting::CopywritingHelper

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

No branches or pull requests

2 participants