Sent from my iPhone
On 23 Nov 2008, at 12:06, Zhao Yi
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
> I am new to rails. I read some examples and don''t understand rails
erb
> syntax. There is a piece of code I am not familiar:
>
> <% form_for(@bay_info) do |f| %>
> <%= f.error_messages %>
>
f is a form builder. If my memory is correct the docs for form_for
should have some details.
Fred> <p>
> <%= f.label :HostName %><br />
> <%= f.text_field :HostName %>
> </p>
> ...
>
> I wander what f mean. What is its type? How can I find its definition?
>
> thanks.
> --
> Posted via http://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---