I generated  controller and view as.
     "script/generate controller home index"

 
Tried to make a form .Edited the index method in home controller and
added follwoing stuff inside

  <%= form_for @home do |f| %>
  <%= f.label :first_name %>:
  <%= f.text_field :first_name %><br />

  <%= f.label :last_name %>:
  <%= f.text_field :last_name %><br />

  <%= f.submit %>
  <% end %>
 
Then started the server But it didnt generate form.Am i missing
anything(i hope so).Should anything be added in index.html.erb file in
home view?Or else?Using rails 3.0.7.I Have read the form generation
tutorils but could not understand lot.So asking here.

Regards

Amrit Pal Pathak

Thanks

-- 
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 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to