我是Ruby和Rails的新手。当我想通过键入命令(rails new sample_app)在rails中创建一些application_name时,它正在创建一个新文件夹。键入suppose rails console命令时,它在我的目录中生成控制台文件夹,而不是切换到rails控制台。我感到非常恼火请帮助我,我在哪里犯错误,我已经安装了导轨2.3.14,我在轨道上使用红宝石3.2
急切地等待你的肯定答复..谢谢你
bikram@Bikram:~/rails_projects$ rails console
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create vendor/rails
答案 0 :(得分:0)
删除你的sample_app项目并重新安装Rails - 我可以看到 你的rails二进制文件是2.3.x版本。
创建新项目
cd to created project
然后尝试启动rails console。
答案 1 :(得分:0)
我建议你从基础开始,这是一个很好的资源:http://ruby.railstutorial.org/