::Admin::Admin does nothing
and still
Trying Admin::Admin::AdminsController

2010/9/6 Andrey Voronkov <[email protected]>:
> Trying Admin::Admin::AdminsController
>
> 2010/9/6 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
>> You can try another thing:
>>
>> active_scaffold ::Admin::Admin
>>
>> instead of
>>
>> active_scaffold Admin::Admin
>>
>> On Lunes, 6 de Septiembre de 2010 11:54:12 Sergio Cambra .:: entreCables S.L.
>> ::. escribió:
>>> On Lunes, 6 de Septiembre de 2010 11:01:39 Andrey Voronkov escribió:
>>> > Should I update to the top of master branch I've updated it a couple
>>> > of weeks ago
>>>
>>> You can try it, but active_scaffold_controller_for method hasn't changed in
>>> months.
>>>
>>> You can try to add a debug line above line 195 of lib/active_scaffold.rb
>>>
>>> Rails.logger.debug "Trying
>>> #{namespace}#{controller_name.camelize}Controller" controller =
>>> "#{namespace}#{controller_name.camelize}Controller".constantize
>>>
>>> That is the line which is failing, but that method should raise an
>>> exception when constant doesn't exist or return the constant, not raise an
>>> exception about not missing constant. It seems a rails bug, but I have
>>> rails-2.3.8 too and it's working here.
>>>
>>> > 2010/9/6 Andrey Voronkov <[email protected]>:
>>> > > ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
>>> > >
>>> > > 2010/9/6 Andrey Voronkov <[email protected]>:
>>> > >> My controller is:
>>> > >>
>>> > >> class Admin::AdminsController < ApplicationController
>>> > >>  active_scaffold Admin::Admin do |config|
>>> > >>    config.columns = [:name, :login, :email, :password,
>>> > >>
>>> > >> :password_confirmation] end
>>> > >>
>>> > >> end
>>> > >>
>>> > >> And the output:
>>> > >>
>>> > >> Processing Admin::AdminsController#new (for 127.0.0.1 at 2010-09-06
>>> > >> 18:24:44) [GET]
>>> > >>  Parameters: {"adapter"=>"_list_inline_adapter"}
>>> > >>  Admin::Admin Load (4.4ms)   SELECT * FROM "users" WHERE
>>> > >> ("users"."id" = 1) AND ( ("users"."type" = 'Admin::Admin' ) ) LIMIT 1
>>> > >>
>>> > >> ActionView::TemplateError (Admin is not missing constant
>>> > >> AdminsController!) on line #13 of
>>> > >> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:
>>> > >> 10:     <%= render :partial => form_partial_for_column(column),
>>> > >>
>>> > >> :locals => { :column => column } -%>
>>> > >>
>>> > >> 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 -%>
>>> > >>
>>> > >>    activesupport (2.3.8) lib/active_support/dependencies.rb:417:in
>>> > >> `load_missing_constant'
>>> > >>    activesupport (2.3.8) lib/active_support/dependencies.rb:80:in
>>> > >> `const_missing'
>>> > >>    activesupport (2.3.8) lib/active_support/dependencies.rb:98:in
>>> > >> `send' activesupport (2.3.8) lib/active_support/dependencies.rb:98:in
>>> > >> `const_missing'
>>> > >>    activesupport (2.3.8) lib/active_support/inflector.rb:364:in
>>> > >> `constantize' activesupport (2.3.8)
>>> > >> lib/active_support/inflector.rb:363:in `each' activesupport (2.3.8)
>>> > >> lib/active_support/inflector.rb:363:in `constantize' activesupport
>>> > >> (2.3.8)
>>> > >> lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
>>> > >>    vendor/plugins/active_scaffold/lib/active_scaffold.rb:195:in
>>> > >> `active_scaffold_controller_for'
>>> > >>    vendor/plugins/active_scaffold/lib/active_scaffold.rb:193:in `each'
>>> > >>    vendor/plugins/active_scaffold/lib/active_scaffold.rb:193:in
>>> > >> `active_scaffold_controller_for'
>>> > >>    vendor/plugins/active_scaffold/lib/active_scaffold.rb:192:in `each'
>>> > >>    vendor/plugins/active_scaffold/lib/active_scaffold.rb:192:in
>>> > >> `active_scaffold_controller_for'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/view_helper
>>> > >>s .rb:29:in `active_scaffold_controller_for'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column
>>> > >>_ helpers.rb:233:in `override_form_field_partial'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column
>>> > >>_ helpers.rb:227:in `override_form_field_partial?'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/helpers/form_column
>>> > >>_ helpers.rb:263:in `form_partial_for_column'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:
>>> > >>1 3
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/act
>>> > >>io n_columns.rb:77:in `each'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/act
>>> > >>i on_columns.rb:64:in `each'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/frontends/default/views/_form.html.erb:
>>> > >>2 actionpack (2.3.8) lib/action_view/renderable.rb:34:in `send'
>>> > >> actionpack (2.3.8) lib/action_view/renderable.rb:34:in
>>> > >> `render_without_active_scaffold'
>>> > >>    actionpack (2.3.8) lib/action_view/base.rb:306:in `with_template'
>>> > >>    actionpack (2.3.8) lib/action_view/renderable.rb:30:in
>>> > >> `render_without_active_scaffold'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb
>>> > >>: 94:in `render'
>>> > >>    actionpack (2.3.8) lib/action_view/renderable_partial.rb:20:in
>>> > >> `render' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:26:in `benchmark' activesupport
>>> > >> (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms'
>>> > >> /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:26:in `benchmark' actionpack
>>> > >> (2.3.8)
>>> > >> lib/action_view/renderable_partial.rb:19:in `render' actionpack
>>> > >> (2.3.8) lib/action_view/template.rb:205:in `render_template'
>>> > >> actionpack (2.3.8) lib/action_view/renderable_partial.rb:44:in
>>> > >> `render_partial'
>>> > >>    actionpack (2.3.8) lib/action_view/partials.rb:184:in
>>> > >> `render_partial' actionpack (2.3.8) lib/action_view/base.rb:267:in
>>> > >> `render_without_active_scaffold'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb
>>> > >>: 61:in `render_without_haml'
>>> > >>    haml (3.0.17) rails/./lib/haml/helpers/action_view_mods.rb:13:in
>>> > >> `render'
>>> > >> vendor/plugins/active_scaffold/frontends/default/views/_create_form.ht
>>> > >>ml .erb:40 actionpack (2.3.8) lib/action_view/renderable.rb:34:in
>>> > >> `send' actionpack (2.3.8) lib/action_view/renderable.rb:34:in
>>> > >> `render_without_active_scaffold'
>>> > >>    actionpack (2.3.8) lib/action_view/base.rb:306:in `with_template'
>>> > >>    actionpack (2.3.8) lib/action_view/renderable.rb:30:in
>>> > >> `render_without_active_scaffold'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb
>>> > >>: 94:in `render'
>>> > >>    actionpack (2.3.8) lib/action_view/renderable_partial.rb:20:in
>>> > >> `render' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:26:in `benchmark' activesupport
>>> > >> (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms'
>>> > >> /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:26:in `benchmark' actionpack
>>> > >> (2.3.8)
>>> > >> lib/action_view/renderable_partial.rb:19:in `render' actionpack
>>> > >> (2.3.8) lib/action_view/template.rb:205:in `render_template'
>>> > >> actionpack (2.3.8) lib/action_view/renderable_partial.rb:44:in
>>> > >> `render_partial'
>>> > >>    actionpack (2.3.8) lib/action_view/partials.rb:184:in
>>> > >> `render_partial' actionpack (2.3.8) lib/action_view/base.rb:267:in
>>> > >> `render_without_active_scaffold'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_view_rendering.rb
>>> > >>: 61:in `render_without_haml'
>>> > >>    haml (3.0.17) rails/./lib/haml/helpers/action_view_mods.rb:13:in
>>> > >> `render' actionpack (2.3.8) lib/action_controller/base.rb:964:in
>>> > >> `render_without_benchmark'
>>> > >>    actionpack (2.3.8) lib/action_controller/benchmarking.rb:51:in
>>> > >> `render_without_active_scaffold'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms'
>>> > >> /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:51:in
>>> > >> `render_without_active_scaffold'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_controller_render
>>> > >>i ng.rb:13:in `render'
>>> > >>    actionpack (2.3.8) lib/action_controller/base.rb:986:in
>>> > >> `render_to_string'
>>> > >> vendor/plugins/active_scaffold/lib/extensions/action_controller_render
>>> > >>in g.rb:9:in `render'
>>> > >>
>>> > >>
>>> > >> vendor/plugins/active_scaffold/lib/active_scaffold/actions/create.rb:3
>>> > >>6
>>> > >>
>>> > >>: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
>>> > >> actionpack (2.3.8) lib/action_controller/mime_responds.rb:135:in
>>> > >> `call' actionpack (2.3.8) lib/action_controller/mime_responds.rb:135
>>> > >> actionpack (2.3.8) lib/action_controller/mime_responds.rb:179:in
>>> > >> `call' actionpack (2.3.8)
>>> > >> lib/action_controller/mime_responds.rb:179:in `respond' actionpack
>>> > >> (2.3.8) lib/action_controller/mime_responds.rb:173:in `each'
>>> > >> actionpack (2.3.8) lib/action_controller/mime_responds.rb:173:in
>>> > >> `respond' actionpack (2.3.8)
>>> > >> lib/action_controller/mime_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:1
>>> > >>3
>>> > >>
>>> > >>:in `new'
>>> > >>
>>> > >>    actionpack (2.3.8) lib/action_controller/base.rb:1331:in `send'
>>> > >>    actionpack (2.3.8) lib/action_controller/base.rb:1331:in
>>> > >> `perform_action_without_filters'
>>> > >>    actionpack (2.3.8) lib/action_controller/filters.rb:617:in
>>> > >> `call_filters' actionpack (2.3.8)
>>> > >> lib/action_controller/filters.rb:610:in
>>> > >> `perform_action_without_benchmark'
>>> > >>    actionpack (2.3.8) lib/action_controller/benchmarking.rb:68:in
>>> > >> `perform_action_without_rescue'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms'
>>> > >> /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
>>> > >>    activesupport (2.3.8)
>>> > >> lib/active_support/core_ext/benchmark.rb:17:in `ms' actionpack (2.3.8)
>>> > >> lib/action_controller/benchmarking.rb:68:in
>>> > >> `perform_action_without_rescue'
>>> > >>    actionpack (2.3.8) lib/action_controller/rescue.rb:160:in
>>> > >> `perform_action_without_flash'
>>> > >>    actionpack (2.3.8) lib/action_controller/flash.rb:151:in
>>> > >> `perform_action_without_render_component'
>>> > >>    vendor/plugins/render_component/lib/components.rb:39:in
>>> > >> `perform_action' actionpack (2.3.8)
>>> > >> lib/action_controller/base.rb:532:in `send' actionpack (2.3.8)
>>> > >> lib/action_controller/base.rb:532:in `process_without_filters'
>>> > >>    actionpack (2.3.8) lib/action_controller/filters.rb:606:in
>>> > >> `process' actionpack (2.3.8) lib/action_controller/base.rb:391:in
>>> > >> `process' actionpack (2.3.8) lib/action_controller/base.rb:386:in
>>> > >> `call' actionpack (2.3.8)
>>> > >> lib/action_controller/routing/route_set.rb:438:in `call' actionpack
>>> > >> (2.3.8) lib/action_controller/dispatcher.rb:87:in `dispatch'
>>> > >> actionpack (2.3.8) lib/action_controller/dispatcher.rb:121:in `_call'
>>> > >> actionpack (2.3.8) lib/action_controller/dispatcher.rb:130 warden
>>> > >> (0.10.7) lib/warden/manager.rb:35:in `call'
>>> > >>    warden (0.10.7) lib/warden/manager.rb:35:in `call'
>>> > >>    warden (0.10.7) lib/warden/manager.rb:34:in `catch'
>>> > >>    warden (0.10.7) lib/warden/manager.rb:34:in `call'
>>> > >>    haml (3.0.17) rails/./lib/sass/plugin/rack.rb:41:in `call'
>>> > >>    pdfkit (0.4.4) lib/pdfkit/middleware.rb:14:in `call'
>>> > >>    actionpack (2.3.8) lib/action_controller/string_coercion.rb:25:in
>>> > >> `call' rack (1.1.0) lib/rack/head.rb:9:in `call'
>>> > >>    rack (1.1.0) lib/rack/methodoverride.rb:24:in `call'
>>> > >>    actionpack (2.3.8) lib/action_controller/params_parser.rb:15:in
>>> > >> `call' actionpack (2.3.8)
>>> > >> lib/action_controller/session/abstract_store.rb:128:in `call'
>>> > >>    activerecord (2.3.8) lib/active_record/query_cache.rb:29:in `call'
>>> > >>    activerecord (2.3.8)
>>> > >> lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
>>> > >> `cache'
>>> > >>    activerecord (2.3.8) lib/active_record/query_cache.rb:9:in `cache'
>>> > >>    activerecord (2.3.8) lib/active_record/query_cache.rb:28:in `call'
>>> > >>    activerecord (2.3.8)
>>> > >> lib/active_record/connection_adapters/abstract/connection_pool.rb:361:
>>> > >>in `call'
>>> > >>    actionpack (2.3.8) lib/action_controller/failsafe.rb:26:in `call'
>>> > >>    rack (1.1.0) lib/rack/lock.rb:11:in `call'
>>> > >>    rack (1.1.0) lib/rack/lock.rb:11:in `synchronize'
>>> > >>    rack (1.1.0) lib/rack/lock.rb:11:in `call'
>>> > >>    actionpack (2.3.8) lib/action_controller/dispatcher.rb:114:in
>>> > >> `call' actionpack (2.3.8) lib/action_controller/reloader.rb:34:in
>>> > >> `run' actionpack (2.3.8) lib/action_controller/dispatcher.rb:108:in
>>> > >> `call' rails (2.3.8) lib/rails/rack/static.rb:31:in `call'
>>> > >>    rack (1.1.0) lib/rack/urlmap.rb:47:in `call'
>>> > >>    rack (1.1.0) lib/rack/urlmap.rb:41:in `each'
>>> > >>    rack (1.1.0) lib/rack/urlmap.rb:41:in `call'
>>> > >>    rails (2.3.8) lib/rails/rack/log_tailer.rb:17:in `call'
>>> > >>    rack (1.1.0) lib/rack/content_length.rb:13:in `call'
>>> > >>    rack (1.1.0) lib/rack/chunked.rb:15:in `call'
>>> > >>    rack (1.1.0) lib/rack/handler/mongrel.rb:67:in `process'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:159:in `process_client'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:158:in `each'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:158:in `process_client'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:285:in `run'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:285:in `initialize'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:285:in `new'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:285:in `run'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:268:in `initialize'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:268:in `new'
>>> > >>    mongrel (1.1.5) lib/mongrel.rb:268:in `run'
>>> > >>    rack (1.1.0) lib/rack/handler/mongrel.rb:38:in `run'
>>> > >>    rails (2.3.8) lib/commands/server.rb:111
>>> > >>    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>> > >> `gem_original_require'
>>> > >>    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
>>> > >> `require' script/server:3
>>> > >>
>>> > >> Rendered rescues/_trace (478.8ms)
>>> > >> Rendered rescues/_request_and_response (6.7ms)
>>> > >> Rendering rescues/layout (internal_server_error)
>>> > >>
>>> > >> 2010/9/6 Sergio Cambra .:: entreCables S.L. ::.
>> <[email protected]>:
>>> > >>> On Lunes, 6 de Septiembre de 2010 08:08:57 Andrey Voronkov escribió:
>>> > >>>> activescaffold Admin::Admin do |config|
>>> > >>>>   blablabla
>>> > >>>> end
>>> > >>>>
>>> > >>>> on create I'm getting this:
>>> > >>>>
>>> > >>>> ActionView::TemplateError (Admin is not missing constant
>>> > >>>> AdminsController!) on line #13 of
>>> > >>>> vendor/plugins/active_scaffold/frontends/default/views/_form.html.er
>>> > >>>>b:
>>> > >>>
>>> > >>> Please, post full backtrace, uncommenting last line in
>>> > >>> config/initializers/backtrace_silencers.rb
>>> > >>> What is your controller?
>>> > >>>
>>> > >>> --
>>> > >>> 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.
>>>
>>> --
>>> Sergio Cambra .:: entreCables S.L. ::.
>>> Mariana Pineda 23, 50.018 Zaragoza
>>> T) 902 021 404 F) 976 52 98 07 E) [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.
>>
>>
>

-- 
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