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

Error when trying to add page part #18

@savulchik

Description

@savulchik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions