On Aug 11, 5:46 am, 7stud -- <[email protected]> wrote:
> Walter Davis wrote in post #1016097:
>
> > I'm not sure why that is -- you're inside of a form builder, building
> > a form for an object that you plan to modify when you submit that
> > form, right?
>
> Why should I have to assume that?  Why can't the form select with all
> the users and their ids, and then the action that the form is submitted
> to sends a birthday email to the selected user?  Or is that what
> form_for(@user) locks me into?
>
It's what's in the action processing the form data that dictates what
the data submitted by the form should look like.
form_for(@user) and using example like Walter's go hand in hand with
being able to just do @user.update_attributes(params[:user])

Fred

> --
> Posted viahttp://www.ruby-forum.com/.

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