Saturday, 31 August 2013

Sixdotfour.Tutorial in RubyRails

Sixdotfour.Tutorial in RubyRails

Generating a controller.
In this step i get some errors. The first is when i type the command in
shell the result is more than it(tutorial) expects. In routes.rb i was
edit and modified the file like is explained:
resources :posts do
resources :comments
end
...but i have this:
Blog::Application.routes.draw do
resources :posts do
resources :comments
end
root to: "Welcome#index"
end
At this point i writed the generate controller command in shell, and then
the console said me that an unexpected end was in routes.rb. Another error
is that the "tuto" said: This creates six files and one empty directory:
but i get alot. More than 20 files. I'm scared to run another time the
command, for that reason im speaking from my memory.

No comments:

Post a Comment