Hi, everyone:

Please help. I have spent the last 5 hours to try to get AS to work
rails 2.2.2 but had no luck. I have a document model, which contains
multiple lines. The controller (below) dies when I click "create
new".

I installed AS with: script/plugin install 
git://github.com/activescaffold/active_scaffold.git
-r rails-2.2, and used ruby 1.8.6 and rails 2.2.2 on windows xp.

Very simple models:
(1) document.rb:
class Document < ActiveRecord::Base
  has_many :lines
end
(2) line.rb
class Line < ActiveRecord::Base
  belongs_to :document
end

Very simple controller: view_document_controller.rb:
class ViewDocumentController < ApplicationController
  active_scaffold :document
end

Log Info:

Processing ViewDocumentController#new (for 127.0.0.1 at 2009-10-05
21:02:40) [GET]
  Parameters: {"adapter"=>"_list_inline_adapter"}


ActionView::TemplateError (Could not find ::LinesController
or ::LineController) on line #18 of vendor/plugins/active_scaffold/
frontends/default/views/_form_association.rhtml:
15: -%>
16: <h5><%= column.label -%> (<%= link_to_visibility_toggle
(:default_visible => !column.collapsed) -%>)</h5>
17: <div <%= 'style="display: none;"' if column.collapsed -%>>
18: <%= render :partial => subform_partial_for_column(column), :locals
=> {:column => column, :parent_record => parent_record, :associated =>
associated} %>
19: </div>
20: <% @record = parent_record -%>

    vendor/plugins/active_scaffold/lib/active_scaffold/helpers/
view_helpers.rb:28:in `active_scaffold_controller_for'
    vendor/plugins/active_scaffold/lib/active_scaffold/helpers/
form_column_helpers.rb:183:in `override_subform_partial'
    vendor/plugins/active_scaffold/lib/active_scaffold/helpers/
form_column_helpers.rb:178:in `override_subform_partial?'
    vendor/plugins/active_scaffold/lib/active_scaffold/helpers/
form_column_helpers.rb:227:in `subform_partial_for_column'
    vendor/plugins/active_scaffold/frontends/default/views/
_form_association.rhtml:18
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:20:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/benchmark.rb:8:in `realtime'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:19:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
template.rb:73:in `render_template'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:45:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
partials.rb:152:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
base.rb:258:in `render_without_active_scaffold'
    vendor/plugins/active_scaffold/lib/extensions/
action_view_rendering.rb:61:in `render'
    vendor/plugins/active_scaffold/frontends/default/views/_form.rhtml:
10
    vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
action_columns.rb:73:in `each'
    vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/
action_columns.rb:60:in `each'
    vendor/plugins/active_scaffold/frontends/default/views/_form.rhtml:
2
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:20:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/benchmark.rb:8:in `realtime'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:19:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
template.rb:73:in `render_template'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:45:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
partials.rb:152:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
base.rb:258:in `render_without_active_scaffold'
    vendor/plugins/active_scaffold/lib/extensions/
action_view_rendering.rb:61:in `render'
    vendor/plugins/active_scaffold/frontends/default/views/
_create_form.rhtml:38
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable.rb:39:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:20:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/benchmark.rb:8:in `realtime'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:26:in `benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:19:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
template.rb:73:in `render_template'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
renderable_partial.rb:45:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
partials.rb:152:in `render_partial'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/
base.rb:258:in `render_without_active_scaffold'
    vendor/plugins/active_scaffold/lib/extensions/
action_view_rendering.rb:61:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:926:in `render_without_benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:51:in
`render_without_active_scaffold'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/core_ext/benchmark.rb:8:in `realtime'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:51:in
`render_without_active_scaffold'
    vendor/plugins/active_scaffold/lib/extensions/
action_controller_rendering.rb:13:in `render'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:948:in `render_to_string'
    vendor/plugins/active_scaffold/lib/extensions/
action_controller_rendering.rb:9:in `render'
    vendor/plugins/active_scaffold/lib/active_scaffold/actions/
create.rb:23:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:135:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:135:in `custom'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:164:in `call'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:164:in `respond'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:158:in `each'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:158:in `respond'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/mime_responds.rb:107:in `respond_to'
    vendor/plugins/active_scaffold/lib/active_scaffold/actions/
create.rb:14:in `new'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:1253:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:1253:in `perform_action_without_filters'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:617:in `call_filters'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:610:in `perform_action_without_benchmark'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/rescue.rb:136:in `perform_action_without_caching'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:13:in `perform_action'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
    c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
active_record/query_cache.rb:8:in `cache'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/caching/sql_cache.rb:12:in `perform_action'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `send'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:524:in `process_without_filters'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/filters.rb:606:in
`process_without_session_management_support'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/session_management.rb:134:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/base.rb:392:in `process'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:183:in `handle_request'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:123:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `synchronize'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:122:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:132:in `dispatch_cgi'
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/dispatcher.rb:39:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:
103:in `handle_dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:
74:in `service'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
    c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/webrick_server.rb:
60:in `dispatch'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/servers/
webrick.rb:66
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:521:in `new_constants_in'
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/dependencies.rb:153:in `require'
    c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:
49
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    script/server:3

Rendered c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/templates/rescues/_trace (94.0ms)
Rendered c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/templates/rescues/_request_and_response (0.0ms)
Rendering c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/templates/rescues/layout.erb (internal_server_error)
--~--~---------~--~----~------------~-------~--~----~
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