On Miércoles, 15 de Septiembre de 2010 01:33:50 Iñaki Baz Castillo escribió:
> Hi, I use these gems:
>
> - rails 2.3.9
> - devise 1.0.6
> - warden 0.10.7
>
> I use devise (authentication framework) for my activescaffold application:
>
>
> If I install activescaffold as follows ("if you need backwards
> compatibility"): ./script/plugin install
> git://github.com/activescaffold/active_scaffold.git -r rails-2.3
> then all goes ok.
>
> However if I install using:
>   ./script/plugin install
> git://github.com/activescaffold/active_scaffold.git then I get the error
> below when trying to create or edit a devise
> model instance.
>
>
> Could I know the differences between both "versions" of
> activescaffold? how to determine when to use each one (taking into
> account that both are supposed to work under rails-2.3.X?

In a new project, use master branch. In an project started with a previous 
version, stick with rails-2.3 or remove deprecation warnings and update to 
master branch.

After update to master branch you will have to update your helper overrides 
because in master branch you will get full options hash instead of only input 
name. That change cannot be done with a deprecation warning, so master branch 
break backwards compatibility.

It's strange you get that error only in master branch, do you have a 
WebUsersController?

>
> Thanks a lot.
>
>
>
> PS: The error:
>
>
> ActionView::TemplateError (Could not find ::WebUsersController or
>
> ::WebUserController or WebUsersController or WebUserController) on
>
> line #14 of
> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb: 11: 
>  </li>
> 12:   <% else -%>
> 13:   <li class="form-element <%= 'required' if column.required? %>
> <%= column.css_class unless column.css_class.nil? %>">
> 14:     <%= render :partial => form_partial_for_column(column),
>
> :locals => { :column => column } -%>
>
> 15:   </li>
> 16:   <% end -%>
> 17:   <% end -%>
>
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helpers.rb:
>29:in `active_scaffold_controller_for'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column_help
>ers.rb:233:in `override_form_field_partial'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column_help
>ers.rb:227:in `override_form_field_partial?'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column_help
>ers.rb:263:in `form_partial_for_column'
>    
> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:14
> vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_c
>olumns.rb:77:in `each'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/action_c
>olumns.rb:64:in `each'
>     vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:2
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:34:in `send'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:34:in `render_without_active_scaffold'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/base.rb:
>306:in `with_template'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:30:in `render_without_active_scaffold'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb:94:i
>n `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:20:in `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:26:in `benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>     /usr/local//lib/ruby/1.8/benchmark.rb:308:in `realtime'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:26:in `benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:19:in `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/template
>.rb:205:in `render_template'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:44:in `render_partial'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/partials
>.rb:184:in `render_partial'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/base.rb:
>267:in `render_without_active_scaffold'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb:61:i
>n `render'
>    
> vendor/plugins/active_scaffold/frontends/default/views/_create_form.html.er
>b:41
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:34:in `send'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:34:in `render_without_active_scaffold'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/base.rb:
>306:in `with_template'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le.rb:30:in `render_without_active_scaffold'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb:94:i
>n `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:20:in `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:26:in `benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>     /usr/local//lib/ruby/1.8/benchmark.rb:308:in `realtime'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:26:in `benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:19:in `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/template
>.rb:205:in `render_template'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/renderab
>le_partial.rb:44:in `render_partial'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/partials
>.rb:184:in `render_partial'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_view/base.rb:
>267:in `render_without_active_scaffold'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb:61:i
>n `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:964:in `render_without_benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:51:in `render_without_active_scaffold'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>     /usr/local//lib/ruby/1.8/benchmark.rb:308:in `realtime'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:51:in `render_without_active_scaffold'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.r
>b:13:in `render'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:986:in `render_to_string'
>    
> vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.r
>b:9:in `render'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:36:in
> `new_respond_to_js'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb:136:in
> `send'
>     vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb:136
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:135:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:135
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:179:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:179:in `respond'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:173:in `each'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:173:in `respond'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/mi
>me_responds.rb:107:in `respond_to'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb:134:in
> `respond_to_action'
>    
> vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:13:in
> `new'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:1331:in `send'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:1331:in `perform_action_without_filters'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/fi
>lters.rb:617:in `call_filters'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/fi
>lters.rb:610:in `perform_action_without_benchmark'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:68:in `perform_action_without_rescue'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>     /usr/local//lib/ruby/1.8/benchmark.rb:308:in `realtime'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.9/lib/active_support/co
>re_ext/benchmark.rb:17:in `ms'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/be
>nchmarking.rb:68:in `perform_action_without_rescue'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/re
>scue.rb:160:in `perform_action_without_flash'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/fl
>ash.rb:151:in `perform_action_without_render_component'
>     vendor/plugins/render_component/lib/components.rb:39:in
> `perform_action'
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:532:in `send'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:532:in `process_without_filters'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/fi
>lters.rb:606:in `process'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:391:in `process'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ba
>se.rb:386:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/ro
>uting/route_set.rb:438:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/di
>spatcher.rb:87:in `dispatch'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/di
>spatcher.rb:121:in `_call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/di
>spatcher.rb:130
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/quer
>y_cache.rb:29:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/quer
>y_cache.rb:29:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/conn
>ection_adapters/abstract/query_cache.rb:34:in `cache'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/quer
>y_cache.rb:9:in `cache'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/quer
>y_cache.rb:28:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.9/lib/active_record/conn
>ection_adapters/abstract/connection_pool.rb:361:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/warden-0.10.7/lib/warden/manager.rb:35:in
> `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/warden-0.10.7/lib/warden/manager.rb:34:in
> `catch'
>    
> /usr/local/lib/ruby/gems/1.8/gems/warden-0.10.7/lib/warden/manager.rb:34:in
> `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/st
>ring_coercion.rb:25:in `call'
>     /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb:9:in
> `call'
> /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:
>in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/pa
>rams_parser.rb:15:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/se
>ssion/cookie_store.rb:100:in `call'
>    
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.9/lib/action_controller/fa
>ilsafe.rb:26:in `call'
>     /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
> `call' /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
> `synchronize'
>     /usr/local/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb:11:in
> `call'
>
> --
> Iñaki Baz Castillo
> <[email protected]>

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to