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

  <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@googlegroups.com
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