I should have been following more closely, sorry.
If there isn't a version that's good for 2.3, which one is good for 2.2?
Thanks,
Wes Gamble
Master branch works with rails 2.3, rails-2.2 branch only with rails 2.2
You need render_component plugin to use embedded and nested scaffolds in rails
2.3
--
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com
Thanks,
Wes
/Applications/jruby-1.1.6/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/module/aliasing.rb:29:in
`alias_method_chain': undefined method `set_session_options' for class
`ActionController::Base' (NameError)
Does render_component have any dependencies?
Thanks,
Wes
Nested scaffolds are lists you get for plural associations (has_many, habtm)
Subforms are fields you get in create and update forms for associations.
render_component is needed to use render :active_scaffold, which is used in
nested scaffolds, and you can use to embed active scaffold in your views.
I forgot to say, you must use rails-edge branch from lackac repository:
http://github.com/lackac/render_component/tree/master
It has some fixes for rails 2.3
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
escribió:
> So you can't get that error with rails-edge branch
> Install with script/plugin git://github.com/lackac/render_component.git -r
> rails-edge
> If it doesn't work for you, try to download compressed fom github
>
only one correction:
script/plugin install git://github.com/lackac/render_component.git -r
with this solution work, but the program turn very slow and in other time it stop completly, and pass very long time show this error:
stack level too deep
The problem is the plugin render_component, when i comment line 59 in action_view_rendering.rb the program turn very fast, obviously don't work this functionality.
Remember that i use jruby 1.2rc1, probably is only with jruby, not with ruby,
Benjamín
sorry, the complete error was:
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:10:in
`realtime'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/benchmarking.rb:51:in
`render_with_benchmark'
C:/lito_ware4/vendor/plugins/active_scaffold12/lib/extensions/action_controller_rendering.rb:13:in
`render_with_active_scaffold'
C:/lito_ware4/vendor/plugins/active_scaffold12/lib/active_scaffold/actions/list.rb:41:in
`list'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:135:in
`call'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:135:in
`custom'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:179:in
`call'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:179:in
`respond'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:173:in
`each'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:173:in
`respond'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/mime_responds.rb:107:in
`respond_to'
C:/lito_ware4/vendor/plugins/active_scaffold12/lib/active_scaffold/actions/list.rb:37:in
`list'
C:/lito_ware4/vendor/plugins/active_scaffold12/lib/active_scaffold/actions/list.rb:8:in
`index'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:1261:in
`perform_action'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/filters.rb:617:in
`call_filters'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/filters.rb:610:in
`perform_action_with_filters'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:10:in
`realtime'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/benchmarking.rb:68:in
`perform_action_with_benchmark'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rescue.rb:154:in
`perform_action_with_rescue'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/flash.rb:141:in
`perform_action_with_flash'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:523:in
`process'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/filters.rb:606:in
`process_with_filters'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:391:in
`process'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:386:in
`call'
C:/downloads/desarrollo/ruby/jruby/jruby-1.2.0RC1/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/routing/route_set.rb:433:in
`call'
Benjamín