On Apr 24, 8:36 am, Colin Law <[email protected]> wrote:
> On 24 April 2011 13:23, amrit pal pathak <[email protected]> wrote:
>
>
>
>
>
>
>
>
>
>
>
> > 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)?
>
> I think you said that you worked through the Rails Guide on getting
> started. Is that correct? Did you really work right through it,
> examining the code generated by the scaffolding, making sure you
> understood everything there, and experimenting with small changes to
> make sure you understand what is going on? If so then I cannot
> understand how you do not know that code that generates a form for
> display in the browser must go in one of the view files. *Please*
> work through the getting started guide again and make sure you
> understand it. That way will save us all a lot of time.
>
> Once you have worked through that guide then find a more complex one
> (I think I recommended the free-to-use-online one at railstutorial.org
> previously) and work through that.
>
Ok i will again go through tutorial and understand again.Will
try to edit .
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.