Re: Beginner problem

felipekk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Sun, 23 Dec 2007 04:04:14 -0000

I think it is too soon since 2.0 was released. If there is any
tutorial out there covering 2.0, I doubt it is going to be very
complete and aimed at beginners.

I would recommend AWDWR, 2nd edition. It covers Rails 1.2.6, but still
it is very complete. It tells you exactly what you are doing and why.
It has a very good tutorial and after that it covers Rails as a whole.

I started working with it in october. By now I am working on my own
app, reading the part of the book that is not related to the depot app
(the app you develop on the book as a tutorial) and doing coding in my
free time. I actually never finished the depot app (not that the guide
is useless or flawed or anything, it was mostly because of how I learn
things).

I''ve started converting my app to 2.0 in baby steps. Everything new I
create is RESTful, but I''m not in a hurry to refactor the
"old" code.
I think it is easier to "learn" 2.0 if you know 1.2, but thats my
opinion.

I would advise you to go trough and create the depot app (from the
AWDWR book) using 1.2.6. After you are done, you will be more prepared
to start creating your own app using 2.0.

AWDWR:
http://www.amazon.com/Agile-Web-Development-Rails-2nd/dp/0977616630/ref=sr_1_1?ie=UTF8&s=books&qid=1198382546&sr=1-1

On Dec 22, 7:11 pm, Sean Foley
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> felip...-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 viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com