11 Jul '12, 2pm

Scaffolding for pre-existing database table in 2.0.1 - Ruby Forum:

Hi, first of all I will apologize in advance for my presumably noobish question, but I'm only starting to learn Rails and am a little confused with all the changes in 2.0.1. There are as good as no tutorials out yet and the 2 or 3 screencasts I've seen deal with the creation of both the app and the database. Now my problem is that I already have a database with a fair amount of records in it (contacts with columns id:integer, first_name:string, last_name:string). In order to get a simple CRUD interface (that's all I want for now), with the pre-2.0 version of Rails, I could simply "generate scaffold contacts" and the framework would provide me with all the necessary files to get started with (controller, model and views). When I try the same command ("generate scaffold contacts") in 2.0.1 it will almost do the same thing, but somehow it misses all the fields from the databa...

Full article: http://www.ruby-forum.com/topic/134594

Tweets

The Great GNC Sale - selected items Buy 1 get 1 Free

The Great GNC Sale - selected items Buy 1 get 1...

tualobang.blogspot.com 13 Jul '12, 9am

Hi, thanks for visiting. Here's a simple FAQ for the site: 1. We provide multiple content push options: a) Subscribe to em...

%w(Akita On Rails) * 2.0 - Rolling with Rails 2.0 - The First Full Tutorial - Part 1 #tips

%w(Akita On Rails) * 2.0 - Rolling with Rails 2...

akitaonrails.com 18 Jul '12, 8am

Notice that now you have a ‘encoding’ options that’s set to UTF8 by default. The Rails app itself loads up with KCODE = tr...

Wow. Our Ruby BBS just had his 10. birthday.

forum.ruby-portal.de 14 Jul '12, 9pm

Wenn Ruby on Rails brandneu für dich ist, stelle deine Fragen bitte hier.

Watching Nested Model Form Part 1 on RailsCasts...

railscasts.com 14 Jul '12, 1am

Handling multiple models in a single form is much easier with the accepts_nested_attributes_for method. See how to use thi...

Watch what happens if you put a clam on a table...

grist.org 10 Jul '12, 3pm

Here’s a fun pastime, if you’re mildly sociopathic: Put a clam on a table. Sprinkle salt around it. Watch as it investigat...

Roadmap for Rails Apps Composer 2.0

rubyflow.com 13 Jul '12, 8pm

is a gem with recipes to create Rails application templates you can use to generate Rails starter apps. I use it to create...