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

Already on GitHub? Sign in to your account

NoMethodError in Refinery/admin/pages#create #2516

kaerus opened this Issue Jan 14, 2014 · 6 comments


None yet
3 participants

ghost commented Jan 14, 2014

When creating a new Page and saving with a blank title.

Showing /Users/kaerus/.rvm/gems/ruby-2.0.0-p353/gems/refinerycms-pages-2.1.1/app/views/refinery/admin/pages/_form_advanced_options.html.erb where line #28 raised:

undefined method `map' for nil:NilClass

@ugisozols ugisozols closed this Jan 16, 2014


ghost commented Jan 16, 2014

Great, thanks!


ghost commented Mar 13, 2014

hmm didn't the patch go into 2.1-stable?
I'm on v2.1.1 and it still fails.

  Rendered /Users/kaerus/.rvm/gems/ruby-2.0.0-p353/gems/refinerycms-pages-2.1.1/app/views/refinery/admin/pages/_form_advanced_options.html.erb (26.0ms)
  Rendered refinery/admin/pages/_form.html.erb (58.2ms)
  Rendered /Users/kaerus/.rvm/gems/ruby-2.0.0-p353/gems/refinerycms-pages-2.1.1/app/views/refinery/admin/pages/new.html.erb within layouts/refinery/admin (58.5ms)
Completed 500 Internal Server Error in 91.3ms

ActionView::Template::Error (undefined method `map' for nil:NilClass):
    25:         <%= f.label :view_template, t('.view_template') %>
    26:         <%= refinery_help_tag t('.view_template_help') %>
    27:       </span>
    28:       <%= f.select :view_template, @valid_view_templates.map { |t| [t.titleize, t] },
    29:                    template_options(:view_template, @page) %>
    30:     </div>

ugisozols commented Mar 13, 2014

2.1.1 was released last year in November but fix in #2517 was only merged 2 months ago so to get it now in your Gemfile point refinerycms to 2-1-stable branch:

gem "refinerycms", github: "refinery/refinerycms", branch: "2-1-stable"

parndt commented Mar 13, 2014

@ugisozols I'm happy to release 2.1.2 if you are too.


ugisozols commented Mar 14, 2014

I added missing changelog entries so now we're ready for 2.1.2.


parndt commented Mar 14, 2014

@ugisozols released

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