Salut à tous,
Je souhaite m'initier un peu à RoR. Pour cela je comptais suivre ce tuto en vidéo (qui m'a halluciné) : http://www.rubyonrails.com/media/video/rails_take2_with_sound.mov
Seulement à l'étape à laquelle il édite le fichier blog_controller.rb en mettant ça :
class BlogController < ApplicationController
scaffold: post
end
J'ai alors un triste :
SyntaxError in #
/app/controllers/blog_controller.rb:2: syntax error
scaffold: post
^
routing.rb:219:in `traverse_to_controller'
generated/routing/recognition.rb:3:in `eval'
generated/routing/recognition.rb:3:in `recognize_path'
./script/server:51
Show framework trace
/vendor/activesupport/lib/active_support/dependencies.rb:193:in `load'
/vendor/activesupport/lib/active_support/dependencies.rb:193:in `load'
/vendor/activesupport/lib/active_support/dependencies.rb:38:in `require_or_load'
/vendor/activesupport/lib/active_support/dependencies.rb:21:in `depend_on'
/vendor/activesupport/lib/active_support/dependencies.rb:171:in `require_dependency'
/vendor/activesupport/lib/active_support/dependencies.rb:171:in `require_dependency'
/vendor/activesupport/lib/active_support/dependencies.rb:127:in `load_file!'
/vendor/activesupport/lib/active_support/dependencies.rb:96:in `const_load!'
/vendor/activesupport/lib/active_support/dependencies.rb:79:in `each'
/vendor/activesupport/lib/active_support/dependencies.rb:79:in `const_load!'
/vendor/activesupport/lib/active_support/dependencies.rb:71:in `const_missing'
/vendor/actionpack/lib/action_controller/routing.rb:219:in `traverse_to_controller'
/vendor/actionpack/lib/action_controller/routing.rb:433:in `recognize!'
/vendor/railties/lib/dispatcher.rb:32:in `dispatch'
/vendor/railties/lib/webrick_server.rb:105:in `handle_dispatch'
/vendor/railties/lib/webrick_server.rb:71:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:172:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:161:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:161:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/vendor/railties/lib/webrick_server.rb:57:in `dispatch'
This error occured while loading the following files:
./script/../config/../app/controllers/blog_controller.rb
Request
Parameters: {"BP-RETRY"=>"1"}
Show session dump
---
flash: !ruby/hash:ActionController::Flash::FlashHash {}
Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
Avez vous une idée de ce qui peut en être la cause ?
Merci,
Baptiste.
(je fais tourner RoR sur ma machine en local, une Ubuntu Breezy...)
|
il y a 2 jours 16 heures
il y a 1 semaine 3 jours
il y a 2 semaines 1 heure
il y a 4 semaines 3 jours
il y a 5 semaines 1 jour
il y a 6 semaines 2 jours
il y a 6 semaines 2 jours
il y a 6 semaines 2 jours
il y a 6 semaines 3 jours
il y a 6 semaines 6 jours