activescaffold / active_scaffold

Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
MIT License
1.1k stars 330 forks source link

undefined method render_component #21

Closed Antiarchitect closed 15 years ago

Antiarchitect commented 15 years ago

I'm running rails 2.3.2 and latest version of active_scaffold. Without render_component plugin I get error descripted below, but with plugin installed all works fine. I'm newby in rails so I have no idea about fixing it. I know only that render_component deprecated for latest rails versions.

ActionView::TemplateError (undefined method `render_component' for #ActionView::Base:0x7f09f0501ff8) on line #39 of vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb: 36: :constraints => @constraints, 37: :conditions => association.options[:conditions], 38: :label => h(@label), 39: :params => {:nested => true, :parent_column => column_name, :parent_model => association.active_record} 40: ) 41: end 42: end

vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb:39
vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb:11:in `each'
vendor/plugins/active_scaffold/frontends/default/views/_nested.html.erb:11

Rendered rescues/_trace (45.5ms) Rendered rescues/_request_and_response (1.1ms) Rendering rescues/layout (internal_server_error)

scambra commented 15 years ago

You must install render_component plugin in rails 2.3 to use nested and embbeded scaffolds, as you can see at bottom of README