Refinerycms 2.1.5 fails to edit page with with ActionView::Template::Error (undefined method `use_view_templates' for Refinery::Pages:Module)

52 views
Skip to first unread message

Anita Graham

unread,
Mar 1, 2015, 5:48:13 AM3/1/15
to refine...@googlegroups.com
As in the title but with more context:

015-03-01 21:35:50.160 [INFO ] Rendered vendor/bundle/ruby/2.0.0/gems/refinerycms-pages-2.1.5/app/views/refinery/admin/pages/edit.html.erb within layouts/refinery/admin (552
.0ms) (pid:20431)
2015-03-01 21:35:50.161 [INFO ] Completed 500 Internal Server Error in 955.9ms (pid:20431)
2015-03-01 21:35:50.167 [FATAL] ActionView::Template::Error (undefined method `use_view_templates' for Refinery::Pages:Module):
    30:                    template_options(:layout_template, @page) %>
    31:     </div>
    32:     <% end %>
    33:     <% if Refinery::Pages.use_view_templates %>
    34:     <div class='field'>
    35:       <span class='label_with_help'>
    36:         <%= f.label :view_template, t('.view_template') %>


I can't say how long this has been going on.

# bundle show refinerycms
/home/geordiec/caststone/vendor/bundle/ruby/2.0.0/gems/refinerycms-2.1.5


The gemfile says

gem 'refinerycms',  '~> 2.1.0'

I looked at config/initializers/refinery/pages.rb and uncommented these two lines

config.use_view_templates = true
config.view_template_whitelist = %w[show home pillars columns photowall testimonials]


but I get the same error after a restart.

Any ideas?

Debbie Carne

unread,
Jul 30, 2015, 6:29:05 AM7/30/15
to Refinery CMS, an...@joli.com.au
I had the same error occurring.
I renamed then re-ran the override for the advanced form options: rake refinery:override view=refinery/admin/pages/_form_advanced_options.html
And added my changes back into the file. This fixed it.

Anita Graham

unread,
Jul 30, 2015, 9:01:44 PM7/30/15
to Refinery CMS, an...@joli.com.au

I think a bundle update perhaps fixed it.

I have since moved on to Refinery 3.0.

Reply all
Reply to author
Forward
0 new messages