Hello,
I added an ajax lifecycle transition to my show page:
<field-list ... part="field-list-part" />
<transition-button transition="cancel_submission" if="state=='ready'"
update="field-list-part"/>
and here's what I got:
Processing SubmissionsController#1-2009-02-22-0 (for 127.0.0.1 at
2009-02-24 10:03:20) [POST]
Parameters: {"page_path"=>"submissions/show",
"action"=>"1-2009-02-22-0",
"authenticity_token"=>"4184b8cba504e4d8c4903b1be8bc28da74b444d0",
"render"=>{"0"=>{"id"=>"field-list-part",
"part_context"=>"BAhbCDoUZmllbGRfbGlzdF9wYXJ0IhFzdWJtaXNzaW9uOjFbAA==--026a23b92825548e6108a906f03892f01a5ce5fe
\n"}}, "id"=>"cancel_submission", "controller"=>"submissions"}
User Load (0.6ms) SELECT * FROM "users" WHERE ("users"."id" =
1)
ActionController::UnknownAction (No action responded to
1-2009-02-22-0. Actions: access_denied,
authenticated_user_from_cookie, authorized?, become_ready, call_rake,
cancel_submission, create, create_auth_cookie, destroy,
do_become_ready, do_cancel_submission, edit, index, login_from_cookie,
login_required, model, new, redirect_back_or_default, show,
store_location, and update):
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:617:in `call_filters'
/usr/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:638:in `run_before_filters'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.5/lib/hobo/controller.rb:
22:in `call'
/usr/lib/ruby/gems/1.8/gems/hobo-0.8.5/lib/hobo/controller.rb:
22:in `included_in_class'
snip
Yet I can do a non ajax submission just fine using the generated page
Processing SubmissionsController#do_cancel_submission (for 127.0.0.1
at 2009-02-24 10:09:31) [PUT]
Parameters: {"page_path"=>"submissions/cancel_submission",
"action"=>"do_cancel_submission", "_method"=>"PUT",
"authenticity_token"=>"4184b8cba504e4d8c4903b1be8bc28da74b444d0",
"id"=>"1-2009-02-22-0", "controller"=>"submissions"}
I'm using Hobo 0.8.5
I've worked around this by using a <ready-submission-form> instead of
a <transition-button transition="ready_submission"> on my show page.
It regenerates the whole page rather than just the part, but that's
OK.
I'm submitting this because it's either a bug, or there's something I
don't understand. Whichever it is, it should be resolved. :)
thanks,
Bryan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---