Thanks Hassan. Sorry I did not give the context: these links are used by another, external app (say app B). A user of app B can trigger the creation of a record in App A, and it needs to pass some default parameters. So I don't believe I can use the standard method of using hidden fields, can I?
So the idea really is: how can you create entry points to an app where these entry points contain default parameters for the creation of a record? It seems to me these parameters HAVE to be passed with the URL, but maybe I am wrong? Thanks! On Jan 20, 12:55 am, Hassan Schroeder <[email protected]> wrote: > On Thu, Jan 19, 2012 at 4:19 PM, PierreW <[email protected]> wrote: > > I am using the standard (scaffolded), REST routing. I need to pass > > external values to my "new" action for a certain model, and let the > > user complete the other fields in the standard form_for. > > My initial idea has been to simply amend the URL like this: > > > .../foos/new?size=4&weight=2 > > Why don't you include them in the form as hidden fields? > > -- > 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.

