Could not generate a form

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

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

<%= 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 P.

Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs