kbingman / paperclipped

Please note, this extension is no longer being developed. Please take a look at the radiant-clipped-extension instead. Radiant extension for managing assets and images with the Paperclip plugin.
Other
122 stars 64 forks source link

Error when trying to add page part #18

Open savulchik opened 14 years ago

savulchik commented 14 years ago

Hi, I'm using radiant 0.9.1 and paperclipped installed via 'script/extensions install paperclipped'. When I try to add page part I get the following error:

NoMethodError in Admin/page_parts#create

Showing vendor/extensions/paperclipped/app/views/admin/assets/_show_bucket_link.html.haml where line #1 raised:

undefined method `new_record?' for nil:NilClass

Extracted source (around line #1):

1: - unless @page.new_record? 2: %span#show-bucket 3: = t('paperclipped.bucket') 4: = link_to t("paperclipped.show_assets_bucket"), "#"

Trace of template inclusion: /usr/local/lib/ruby/gems/1.8/gems/radiant-0.9.1/app/views/admin/page_parts/_page_part.html.haml

Request Parameters {"commit"=>"Add Part", "authenticity_token"=>"kfnd41cIuHYyMmnK/dV1TLdhmrMpwdkZrhKGPET23A4=", "page_part"=>{"name"=>"sidebar"}, "index"=>"1"}

Show session dump


Response Headers: {"Content-Type"=>"text/html", "Cache-Control"=>"no-cache"}

Full stack trace is here http://codepad.org/zFZfezVn

Thank you.

cleverlemming commented 14 years ago

http://groups.google.com/group/radiantcms/browse_thread/thread/afd592a909b6051b