Skip to content

Instantly share code, notes, and snippets.

@johanb
Created May 10, 2012 13:29
Show Gist options
  • Save johanb/2652999 to your computer and use it in GitHub Desktop.
Save johanb/2652999 to your computer and use it in GitHub Desktop.
NoMethodError in Refinery/admin/pages#edit
Showing /Users/johanbruning/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/refinerycms-pages-2.0.3/app/views/refinery/admin/pages/_form.html.erb where line #2 raised:
undefined method `persisted?' for nil:NilClass
Extracted source (around line #2):
1: <%= form_for [refinery, :admin, @page],
2: :url => (refinery.admin_page_path(@page.uncached_nested_url) if @page.persisted?) do |f| %>
3:
4: <%= render '/refinery/admin/error_messages', :object => @page, :include_object_name => true %>
5:
@sadfuzzy
Copy link

How did you solve this?

@pavelnikolov
Copy link

I have the same problem

@z342526265
Copy link

I have the same.

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