#279 ✓resolved
Jakub Suder

re_render_form crashes in subsite controller

Reported by Jakub Suder | October 6th, 2008 @ 03:02 PM

I have an 'admin' subsite in my project, and there's a users controller in it. When I edit a user, make a mistake and submit the form, Hobo::ModelController#re_render_form calls Controller.controller_and_view_for, which returns "admin/users" as controller name. re_render_form uses that value to create a variable name, tries to access variable "@admin/user" and throws a NameError exception.

Proposed solution: either controller_and_view_for should return a name without the subsite appended, or re_render_form should strip that part before it uses the string to create a variable name.

Comments and changes to this ticket

  • Tom Locke

    Tom Locke October 15th, 2008 @ 11:15 AM

    • Assigned user set to “Tom Locke”
    • State changed from “new” to “investigating”
    • Milestone cleared.
    • Tag changed from model-controller, controllers, defect, subsites to controllers, defect, model-controller, subsites

    Are you still seeing this with the latest hobo code?

  • Tom Locke

    Tom Locke November 3rd, 2008 @ 04:31 PM

    • State changed from “investigating” to “resolved”

    Finally got around to fixing this in 38d5793

    Turned out the offending line wasn't doing anything useful/sensible anyway so I just deleted it : )

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

Pages