Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Error when trying to add page part #18

Open
savulchik opened this issue Jul 7, 2010 · 1 comment
Open

Error when trying to add page part #18

savulchik opened this issue Jul 7, 2010 · 1 comment

Comments

@savulchik
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants