On Apr 24, 7:25 am, Colin Law <[email protected]> wrote:
> On 24 April 2011 10:28, amrit pal pathak <[email protected]> wrote:
>
> > 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
>
> You added the code below to the index method of the home controller
> (so in controllers/home_controller.rb)? If so then it is not
> surprising it did not work. Where did you put it?
Yes it put in index method of home controller.(Seemz it is
wrong).
Can you please tell me where to put it(in index.html.erb )
(view)?
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 [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.