Think I'm starting to track this down. It's because the page_parts migrations aren't being run successfully.
With a test environment using 0.9.1 I can successfully run : rake radiant:extensions:page_parts:migrate But with 1.0rc2 I get $ rake radiant:extensions:page_parts:migrate (in /Users/joel/Sites/copernicus/cms) $ Checked the database and nothing happened. I'm stumped. Help? - J On Mon, Jun 20, 2011 at 10:16 AM, Joel Oliveira <[email protected]>wrote: > Hi everyone - > > Has anyone gotten the page_parts extension to work with Radiant RC2 or > HEAD? > > In a fresh install of Radiant (RC2) and the latest from the page_parts > extension - https://github.com/digitalpulp/radiant-page_parts-extension. > Only other extension > > When I try to add any of the new part part types ... integer and string > follow: > > ------------------------ > > NoMethodError in Admin/page_parts#create > > Showing > vendor/extensions/page_parts/app/views/admin/page_parts/_integer_page_part.html.haml > where line #1 raised: > > undefined method `integer_content' for #<IntegerPagePart:0x103a68f70> > > Extracted source (around line #1): > > 1: = text_field_tag > "page[parts_attributes][#{page_part_counter}][content]", page_part.content, > :style => "width:2em;", :id => "part_#{page_part.name.to_slug}_content" > > Trace of template inclusion: > vendor/extensions/page_parts/app/views/admin/page_parts/_page_part.html.haml > > RAILS_ROOT: /Users/joel/Sites/copernicus/cms > Application Trace | Framework Trace | Full Trace > > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in > `method_missing' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:67:in > `content' > /Users/joel/Sites/copernicus/cms/vendor/extensions/page_parts/app/views/admin/page_parts/_integer_page_part.html.haml:1:in > `_run_haml_vendor47extensions47page_parts47app47views47admin47page_parts47_integer_page_part46html46haml_locals_integer_page_part_object_page_part_page_part_counter' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in > `send' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in > `render' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/base.rb:306:in > `with_template' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in > `render' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in > `render' > > ------------------------ > > NoMethodError in Admin/page_parts#create > > Showing > vendor/extensions/page_parts/app/views/admin/page_parts/_string_page_part.html.haml > where line #1 raised: > > undefined method `string_content' for #<StringPagePart:0x103763848> > > Extracted source (around line #1): > > 1: ~ text_field_tag > "page[parts_attributes][#{page_part_counter}][content]", page_part.content, > :style => 'width:100%', :class => "textbox", :maxlength => 255, :id => > "part_#{page_part.name.to_slug}_content" > > Trace of template inclusion: > vendor/extensions/page_parts/app/views/admin/page_parts/_page_part.html.haml > > RAILS_ROOT: /Users/joel/Sites/copernicus/cms > Application Trace | Framework Trace | Full Trace > > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in > `method_missing' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/activesupport/lib/active_support/core_ext/module/aliasing.rb:67:in > `content' > /Users/joel/Sites/copernicus/cms/vendor/extensions/page_parts/app/views/admin/page_parts/_string_page_part.html.haml:1:in > `_run_haml_vendor47extensions47page_parts47app47views47admin47page_parts47_string_page_part46html46haml_locals_object_page_part_page_part_counter_string_page_part' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in > `send' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:34:in > `render' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/base.rb:306:in > `with_template' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable.rb:30:in > `render' > /Users/joel/Developer/.rvm/gems/ree-1.8.7-2010.02@copernicus/gems/radiant-1.0.0.rc2/vendor/rails/actionpack/lib/action_view/renderable_partial.rb:20:in > `render' > > > >
