Hassan,

> Sorry, that makes no sense -- the submission URL (that will go to the
> `create` action) shouldn't contain anything from the `new` request.

You are absolutely right... I got totally confused. I looked at my
form again and indeed the problem was in it.

Thanks a lot for pointing me in the right direction.

PJ


On Jan 20, 6:55 pm, Hassan Schroeder <[email protected]>
wrote:
> On Fri, Jan 20, 2012 at 10:35 AM, PierreW <[email protected]> wrote:
> > App A foo/new method is called and the form is pre-populated with size
> > and weight.
> > The problem is, the URL is still appA/foos/new?size=4&weight=2. When
> > the form is submitted, I think what happens is Rails tries to append
> > the form parameters to the existing URL.
>
> Sorry, that makes no sense -- the submission URL (that will go to the
> `create` action) shouldn't contain anything from the `new` request.
>
> What is your view code for the start of the form, and what does using
> `view source` show you for that?
>
> --
> Hassan Schroeder ------------------------ 
> [email protected]http://about.me/hassanschroeder
> twitter: @hassan

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to