On Martes, 16 de Marzo de 2010 15:15:07 Iñaki Baz Castillo escribió:
> Hi, I have model Client having:
>
> has_many :addresses, :primary_key => :id, :foreign_key => :grp
>
> and model Address having:
>
> belongs_to :trunk, :primary_key => :id, :foreign_key => :grp
>
>
> It works as expected and the "edit" form of client_controller (using
> Activescaffold) displays the correct "addresses" of the Client
> instance.
>
> I also can edit addresses in the nested form, and also add a new one
> by filling the last empty row. It works ok.
>
> However if I press the buttom "Create Another" at the bottom of the
> nested form it causes a 500 error:
Are you using active_scaffold in TrunkClientsController? Have you exclude
subform action in that controller?
>
>
> -------------------------------------------
> Processing TrunkClientsController#edit_associated (for 88.88.88.88 at
> 2010-03-16 14:48:43) [GET]
> Parameters: {"association"=>"addresses", "id"=>"1000"}
>
> ActionController::UnknownAction (No action responded to
> edit_associated. Actions: attributes_hash_is_empty?, create, delete,
> destroy, edit, find_or_create_for_params, index, list, nested, new,
> render_field, row, show, show_search, table, update, update_column,
> update_record_from_params, and update_table):
> passenger (2.2.11)
> lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
> passenger (2.2.11)
> lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
> passenger (2.2.11)
> lib/phusion_passenger/railz/application_spawner.rb:418:in
> `start_request_handler'
> passenger (2.2.11)
> lib/phusion_passenger/railz/application_spawner.rb:358:in
> `handle_spawn_application'
> passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
> passenger (2.2.11)
> lib/phusion_passenger/railz/application_spawner.rb:354:in
> `handle_spawn_application'
> passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
> `__send__' passenger (2.2.11)
> lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger
> (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
> `start_synchronously'
> passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
> passenger (2.2.11)
> lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
> passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in
> `spawn_rails_application'
> passenger (2.2.11)
> lib/phusion_passenger/abstract_server_collection.rb:126:in
> `lookup_or_add'
> passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in
> `spawn_rails_application'
> passenger (2.2.11)
> lib/phusion_passenger/abstract_server_collection.rb:80:in
> `synchronize'
> passenger (2.2.11)
> lib/phusion_passenger/abstract_server_collection.rb:79:in
> `synchronize'
> passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in
> `spawn_rails_application'
> passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in
> `spawn_application'
> passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in
> `handle_spawn_application'
> passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
> `__send__' passenger (2.2.11)
> lib/phusion_passenger/abstract_server.rb:352:in `main_loop' passenger
> (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
> `start_synchronously'
> -------------------------------------------
>
>
> In client_controller.rb I have:
>
> config.actions = [:create, :show, :list, :update, :delete,
>
> :search, :nested]
>
> Do I miss something? all works as expected but the "Create another"
> buttom (which in fact I don't know what it's supposed to do).
>
>
>
> Thanks.
>
>
> --
> Iñaki Baz Castillo
> <[email protected]>
>
>
>
> --
> 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.