Please see below, thanks.
ActiveScaffold::MalformedConstraint (Malformed constraint
`Group#groups'. If it's a legitimate column, and you are using a
nested scaffold, please specify or double-check the reverse
association name.):
/vendor/plugins/active_scaffold/lib/active_scaffold/constraints.rb:
42:in `each'
/vendor/plugins/active_scaffold/lib/active_scaffold/constraints.rb:
42:in `conditions_from_constraints'
/vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:
125:in `all_conditions'
/vendor/plugins/active_scaffold/lib/active_scaffold/finder.rb:
158:in `find_page'
/vendor/plugins/active_scaffold/lib/active_scaffold/actions/
list.rb:65:in `do_list'
/vendor/plugins/active_scaffold/lib/active_scaffold/actions/
list.rb:12:in `table'
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/components.rb:62:in `process_with_components'
/vendor/plugins/active_scaffold/lib/extensions/
component_response_with_namespacing.rb:13:in `component_response'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/components.rb:91:in
`render_component_as_string_without_deprecation'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/components.rb:152:in `component_logging'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/components.rb:90:in
`render_component_as_string_without_deprecation'
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/deprecation.rb:94:in `render_component_as_string'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/components.rb:68:in `__send__'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/
action_controller/components.rb:68:in `render_component'
/vendor/plugins/active_scaffold/lib/extensions/
action_view_rendering.rb:59:in `render'
/vendor/plugins/active_scaffold/frontends/default/views/
_nested.rhtml:39:in
`_run_rhtml_vendor47plugins47active_scaffold47frontends47default47views47_nested46rhtml_locals_nested_object'
/vendor/plugins/active_scaffold/frontends/default/views/
_nested.rhtml:11:in `each'
/vendor/plugins/active_scaffold/frontends/default/views/
_nested.rhtml:11:in
`_run_rhtml_vendor47plugins47active_scaffold47frontends47default47views47_nested46rhtml_locals_nested_object'
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/
nested.rb:18:in `nested'
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/
nested.rb:16:in `nested'
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
-e:2:in `load'
-e:2
On May 20, 7:20 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Martes, 19 de Mayo de 2009 22:50:42 johnnybutler7 escribió:
>
>
>
> > Hi,
>
> > I have the following model,
>
> > class Group < ActiveRecord::Base
>
> > has_and_belongs_to_many :subgroups, :class_name =>
> > "Group", :join_table => "groups_subgroups", :foreign_key =>
> > "group_id", :association_foreign_key => "subgroup_id"
>
> > end
>
> > In the console this works fine, i can create groups and add subgroups
> > to a group etc.
>
> > In my AS controller i have:
>
> > config.nested.add_link "Subgroups", [:subgroups]
> > config.columns[:subgroups].association.reverse = :groups
>
> > This gives me a malformed constraint error which i cant understand
> > why. Funny enough if i do the below it works but doesnt pick up the
> > subgroups
>
> Please, paste the errors
>
>
>
> > config.nested.add_link "Subgroups", [:subgroups]
> > config.columns[:subgroups].association.reverse = :subgroups
>
> > Can anyone spot what im doing wrong?
>
> > JB
>
> --
> 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) [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
-~----------~----~----~----~------~----~------~--~---