Topic: Scaffold in Ruby 2.0.0+

I started learning Ruby on Rails recently, with videos. The problem is that these videos are older (from 2006 I think) and the 'teacher' uses version of ruby older than 2.0.0. I got to a part where I am starting to build my first application, following the videos, and at one point he generates a scaffold for a database called Artist and gets:

exists app/controllers/
exists app/helpers/
create app/views/artists
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
skip app/models/artist.rb
identical test/unit/srtist_test.rb
identical test/fixtures/artists.yml
create app/views/artists/_form.rhtml
create app/views/artists/list.rhtml
create app/views/artists/show.rhtml
create app/views/artists/new.rhtml
create app/views/artists/edit.rhtml
create app/controllers/artists_controller.rb
create test/functional/artists_controller_test.rb
create app/helpers/artists_helper.rb
create app/views/layouts/artists.rhtml
create public/stylesheets/scaffold.css

and I get:

exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/artists
exists app/views/layouts/
exists test/functional/
exists test/unit/
identical app/views/artists/index.html.erb
identical app/views/artists/show.html.erb
identical app/views/artists/new.html.erb
identical app/views/artists/edit.html.erb
identical app/views/artists/artists.html.erb
create public/stylesheets/scaffold.css
No such file or directory - C:/Programi/Ruby/Sites/music_library/public/stylesheets/scaffold.css

And views give me Routing error (No route match).

Is this because of the version difference (I know scaffold has been disabled in some ways in the new versions) or could it be something else?
I am new to this so it could be a stupid question, but thanks in advance for answers.

Re: Scaffold in Ruby 2.0.0+

Yup, you are looking for functionality that they blew away.

You may want to start here - … ler-syntax

Basically, the RESTful resources declaration in the routes.rb file will do some of the work for you, but you do need to configure the controller and the views by hand.

It hurts a little, but it helps in the long run. If you still want more or less automatic forms, you may also want to look at

good luck!

Re: Scaffold in Ruby 2.0.0+

this may help also - … -overview/