Tried out the page_factory extension this morning using: config.gem 'radiant-page_factory-extension', :lib=> 'page_factory' (in environment.rb) rake db:migrate:extensions rake radiant:extensions:update_all
Added lib/news_item_page_factory.rb and presto... Working awesomely locally. Push to Heroku seems fine, gem installed ok, but get NoMethodError (undefined method `page_factory=' for #<Page:0x2ade052b53a0>). I've included the Heroku gems manifest, push, and logs below. Any help would be appreciated. ===Heroku .gems Manifest====================== rails -v 2.3.8 radiant -v 0.9.1 radiant-settings-extension -v 1.1.1 radiant-page_factory-extension -v 1.0.1 RedCloth -v 4.2.3 imagesize paperclip ===Heroku push============================== -----> Heroku receiving push -----> Removing .DS_Store files -----> Rails app detected -----> Installing gem rails 2.3.8 from http://rubygems.org Successfully installed activesupport-2.3.8 Successfully installed activerecord-2.3.8 Successfully installed rack-1.1.0 Successfully installed actionpack-2.3.8 Successfully installed actionmailer-2.3.8 Successfully installed activeresource-2.3.8 Successfully installed rails-2.3.8 7 gems installed -----> Installing gem radiant 0.9.1 from http://rubygems.org Building native extensions. This could take a while... Successfully installed will_paginate-2.3.15 Successfully installed RedCloth-4.2.3 Successfully installed radiant-0.9.1 3 gems installed -----> Installing gem radiant-settings-extension 1.1.1 from http://rubygems.org Successfully installed radiant-settings-extension-1.1.1 1 gem installed -----> Installing gem radiant-page_factory-extension 1.0.1 from http://rubygems.org Successfully installed radiant-page_factory-extension-1.0.1 1 gem installed -----> Installing gem RedCloth 4.2.3 from http://rubygems.org Building native extensions. This could take a while... Successfully installed RedCloth-4.2.3 1 gem installed -----> Installing gem imagesize from http://rubygems.org Successfully installed imagesize-0.1.1 1 gem installed -----> Installing gem paperclip from http://rubygems.org Successfully installed activesupport-3.0.0 Successfully installed paperclip-2.3.3 Successfully installed builder-2.1.2 Successfully installed i18n-0.4.1 Successfully installed activemodel-3.0.0 Successfully installed arel-1.0.1 Successfully installed tzinfo-0.3.23 7 gems installed Compiled slug size is 16.9MB -----> Launching.... done http://XXXX-iffy.heroku.com deployed to Heroku ===Heroku Logs========================================== ==> production.log <== # Logfile created on Thu Sep 16 12:15:35 -0700 2010 Processing Admin::PagesController#index (for 206.116.148.220 at 2010-09-16 12:18:05) [GET] Parameters: {"action"=>"index", "controller"=>"admin/pages"} Rendering template within layouts/application Rendering admin/pages/index Completed in 649ms (View: 331, DB: 305) | 200 OK [http://XXXX- iffy.heroku.com/admin/pages] Processing Admin::PageFactoriesController#index (for 206.116.148.220 at 2010-09-16 12:18:10) [GET] Parameters: {"action"=>"index", "page"=>"26", "controller"=>"admin/ page_factories"} Completed in 47ms (View: 2, DB: 5) | 200 OK [http://XXXX- iffy.heroku.com/admin/pages/factories?page=26] Processing Admin::PagesController#new (for 206.116.148.220 at 2010-09-16 12:18:12) [GET] Parameters: {"factory"=>"NewsItemPageFactory", "page_id"=>"26", "action"=>"new", "controller"=>"admin/pages"} NoMethodError (undefined method `page_factory=' for #<Page: 0x2ade052b53a0>): /home/slugs/288861_f7ed5f4_f77f/mnt/.gems/gems/radiant-page_factory- extension-1.0.1/lib/page_factory/pages_controller_extensions.rb:29:in `set_page_defaults' /home/slugs/288861_f7ed5f4_f77f/mnt/.gems/gems/radiant-page_factory- extension-1.0.1/lib/page_factory/pages_controller_extensions.rb:10:in `included' radiant (0.9.1) lib/radiant/resource_responses.rb:40:in `instance_eval' radiant (0.9.1) lib/radiant/resource_responses.rb:40:in `wrap' radiant (0.9.1) lib/radiant/resource_responses.rb:18:in `response_for' radiant (0.9.1) app/controllers/admin/pages_controller.rb:24:in `new' /home/slugs/288861_f7ed5f4_f77f/mnt/.gems/gems/radiant-page_factory- extension-1.0.1/lib/page_factory/pages_controller_extensions.rb:21:in `set_page_factory' radiant (0.9.1) vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb: 20:in `process' /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:25:in `call' /home/heroku_rack/lib/date_header.rb:14:in `call' thin (1.2.6) lib/thin/connection.rb:76:in `pre_process' thin (1.2.6) lib/thin/connection.rb:74:in `catch' thin (1.2.6) lib/thin/connection.rb:74:in `pre_process' thin (1.2.6) lib/thin/connection.rb:57:in `process' thin (1.2.6) lib/thin/connection.rb:42:in `receive_data' eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine' eventmachine (0.12.10) lib/eventmachine.rb:256:in `run' thin (1.2.6) lib/thin/backends/base.rb:57:in `start' thin (1.2.6) lib/thin/server.rb:156:in `start' thin (1.2.6) lib/thin/controllers/controller.rb:80:in `start' thin (1.2.6) lib/thin/runner.rb:177:in `send' thin (1.2.6) lib/thin/runner.rb:177:in `run_command' thin (1.2.6) lib/thin/runner.rb:143:in `run!' thin (1.2.6) bin/thin:6 /usr/ruby1.8.7/bin/thin:19:in `load' /usr/ruby1.8.7/bin/thin:19 Rendering /disk1/home/slugs/288861_f7ed5f4_f77f/mnt/public/500.html (500 Internal Server Error)
