I have two models - an assignment has_many responses, and on the assignment 
show page there is a form to add a response.   When you add a response you are 
sent to a show page for the response, which is not what I want.  I want the 
assignment page to reload showing the new response.   I tried to do this with 
the tag <after-submit stay-here/>, but it doesn't work.   Here is my form 
definition:

<extend tag="form" for="Response">
        <old-form merge>
                <error-messages param/>
                <p><input:body/></p>
                <input  id="response[user_id]" name="response[user_id]" 
type="hidden" value="&current_user.id" />
                <div param="actions">
                        <submit label="Save" param/><or-cancel param="cancel"/>
                </div>
                <after-submit stay-here/>
        </old-form>
</extend>

If I am on a page whose URL is:  

http://localhost:3000/assignments/2-assignment-with-hidden-responses

the HTML shows the line

<input id="page_path" name="page_path" type="hidden" value="assignments/show" />
And when I click the add button, it tries to take me to /assignments/show, 
which does not exist.

Suggestions for a solution or for a work-around?


-- 
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.

Reply via email to