#491 ✓resolved
Matt Jones

hobo_create_for passes a bogus default_action to create_response

Reported by Matt Jones | August 19th, 2009 @ 10:35 PM | in Hobo 1.0 - Final

The default action passed to create_response in hobo_create_for is incorrect - the code presently uses:

  create_response(:"new_for_#{owner}", &b)

where owner is set to the parent object. This causes some bizarre error messages in functional tests, as owner.to_s typically is equivalent to owner.name, which is wrong.

The actions work on a running site, as page_path is getting updated, but it isn't (by default) set in functional tests.

Resolving this will inevitably tie into #477 and friends.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Referenced by

Pages