AS for Rails 2.3?

15 views
Skip to first unread message

Wes Gamble

unread,
Feb 23, 2009, 10:19:49 PM2/23/09
to actives...@googlegroups.com
Is the latest v. of AS in github good for Rails 2.3?

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

Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

unread,
Feb 24, 2009, 4:16:24 AM2/24/09
to actives...@googlegroups.com

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

Wes Gamble

unread,
Feb 24, 2009, 11:03:34 AM2/24/09
to actives...@googlegroups.com
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
wrote:

> 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
>
>
Does this mean that I need render_component in order to have subforms
work correctly? I just want to make sure that I'm interpreting this
correctly.

Thanks,
Wes

Wes Gamble

unread,
Feb 24, 2009, 11:30:21 AM2/24/09
to actives...@googlegroups.com
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
wrote:
>
> 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
>
>
When I add the render_component plugin to my project (via Github), I get
the following error when I start the server.

/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

BillSaysThis

unread,
Feb 24, 2009, 5:02:00 PM2/24/09
to ActiveScaffold : Ruby on Rails plugin
I could really use an answer to this--I wish I had the skills to find
it myself.

Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

unread,
Feb 25, 2009, 4:32:02 AM2/25/09
to actives...@googlegroups.com

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.

Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

unread,
Feb 25, 2009, 4:33:08 AM2/25/09
to actives...@googlegroups.com
El Tuesday 24 February 2009 17:30:21 Wes Gamble escribió:

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

BillSaysThis

unread,
Feb 25, 2009, 1:05:47 PM2/25/09
to ActiveScaffold : Ruby on Rails plugin
Sorry, getting that version makes no difference in my result:

app>script/server
=> Booting Mongrel
=> Rails 2.3.0 application starting on http://0.0.0.0:3000
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.0/lib/active_support/
core_ext/module/aliasing.rb:33:in `alias_method': undefined method
`set_session_options' for class `ActionController::Base' (NameError)
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.0/lib/
active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/lib/components.rb:13:in `included'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/lib/components.rb:3:in `class_eval'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/lib/components.rb:3:in `included'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/init.rb:2:in `include'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/init.rb:2:in `send'
from /Users/billlazar/Sites/jhtc2/vendor/plugins/
render_component/init.rb:2:in `evaluate_init_rb'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.0/lib/rails/
plugin.rb:142:in `evaluate_init_rb'
... 16 levels...
from /Library/Ruby/Gems/1.8/gems/rails-2.3.0/lib/commands/
server.rb:82
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from script/server:3


On Feb 25, 1:33 am, "Sergio Cambra .:: entreCables - Symbol Servicios

Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

unread,
Feb 26, 2009, 3:28:27 AM2/26/09
to actives...@googlegroups.com
El Wednesday 25 February 2009 19:05:47 BillSaysThis escribió:
> Sorry, getting that version makes no difference in my result:
>
> app>script/server
> => Booting Mongrel
> => Rails 2.3.0 application starting on http://0.0.0.0:3000
> /Library/Ruby/Gems/1.8/gems/activesupport-2.3.0/lib/active_support/
> core_ext/module/aliasing.rb:33:in `alias_method': undefined method
> `set_session_options' for class `ActionController::Base' (NameError)
> from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.0/lib/
> active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain'
> from /Users/billlazar/Sites/jhtc2/vendor/plugins/
> render_component/lib/components.rb:13:in `included'

You are using master branch.
Line 13 of lib/components.rb in master branch is:
alias_method_chain :set_session_options, :render_component
which is the error you get
But line 13 of lib/components.rb in rails-edge branch is:
alias_method_chain :session=, :render_component

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

Benjamín Cárdenas Salamandra

unread,
Feb 26, 2009, 8:11:45 AM2/26/09
to actives...@googlegroups.com
Hola,

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

Benjamín Cárdenas Salamandra

unread,
Feb 26, 2009, 8:13:32 AM2/26/09
to actives...@googlegroups.com
Hola,

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


Reply all
Reply to author
Forward
0 new messages