Re: Beginner problem

Sean Foley
Sun, 23 Dec 2007 03:11:35 -0000

felipekk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
> Basically, with the new scaffold you should do something like this:
>
> ruby script/generate scaffold Friend name:string
>
> This will create the Model, the Controller and the Migration that will
> create the columns you specified (in this case, name).
>
> Then you just need to run rake db:migrate and thats it. Remember to
> delete the table you have created before running the Migration. You
> should always edit the Database trough Migrations.
>
> The problem is that the new scaffold is now RESTful, and I bet the
> tutorials you are looking at are not based on RESTful specs. Maybe you
> should install Rails 1.2.6 and specify this version on environment.rb
> so that you can play with the old scaffold...
>
> Felipe



hmm... alright then. Despite what I said previously, can someone suggest
a step-by-step (I''m not a web programmer and I don''t know much
about
frameworks) RoR 2.0+ tutorial or guide that I can read to get on my
feet? I don''t know anything about migrations (or even scaffolds for
that
matter, since the tutorials I read just said, "do this, now this, and
this. yay it works!".

Thank you all for your time, too; I appreciate it.

--Sean
--
Posted via http://www.ruby-forum.com/.