All the method in the form helper have his "object implicit"
counterpart, for example you can call text_field(object_name, method,
options = {}) or f.text_field(method, options = {}) and the object
used is f.object (the parameter of form_for @something), they produce
exactly the same output.

Regards.

Franco Catena.

On May 24, 6:06 pm, SpringFlowers AutumnMoon <rails-mailing-
[email protected]> wrote:
> some books or even the rails api uses
>
> form_for ...
>   ...
>   submit_tag ...
> end
>
> and i found that the Rails 2.3.2 Scaffold uses
>
> f.submit "Go"
>
> instead...  and this is not in the rails api doc.  Is this a new
> addition and is it suppose to replace submit_tag?
> --
> 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