ruby script/rails server fail -
i new ruby world. want run existing rails project, following error:
$ruby script/rails server /users/apple/.rvm/gems/ruby-1.9.3-p194/gems/json-1.7.0/ext/json/ext/json/ext/parser.bundle: undefined class/module encoding (argumenterror) /users/apple/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require' /users/apple/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency' should install other packages or version of rails? if write small project using rails new xxx $ruby script/rails server works.
btw: in mac.
thank you!
the correct commands in different versions of rails are:
rails 2.3
ruby script/server rails 3
rails server # or ruby script/rails server it possible existing project rails 2.3 , environment rails 3.0.
Comments
Post a Comment