一個新手的錯:),我來自rails 3,我已經安裝了bundle,能夠在我的rails 2項目中安裝gems,但我不知道我應該在使用情況下再次註釋上面的行因爲在添加打包程序的指令中沒有提及。
評論# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
後然後我得到了以下
➜ ~ script/generate scaffold user user_name:string email:string
exists app/models/
exists app/controllers/
exists app/helpers/
exists app/views/users
exists app/views/layouts/
exists test/functional/
exists test/unit/
exists test/unit/helpers/
exists public/stylesheets/
overwrite app/views/users/index.html.erb? (enter "h" for help) [Ynaqdh] y
force app/views/users/index.html.erb
create app/views/users/show.html.erb
create app/views/users/new.html.erb
create app/views/users/edit.html.erb
create app/views/layouts/users.html.erb
create public/stylesheets/scaffold.css
create app/controllers/users_controller.rb
create test/functional/users_controller_test.rb
create app/helpers/users_helper.rb
create test/unit/helpers/users_helper_test.rb
route map.resources :users
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/user.rb
create test/unit/user_test.rb
create test/fixtures/users.yml
create db/migrate
create db/migrate/20130820214343_create_users.rb
和rake db:migrate
做,所以現在意味着一切都很好?
這是一個很難的問題,它可能是2.3.5 rails的問題,也可能是因爲你沒有使用bundle exec,但那不太可能。我不得不說,要解決這個問題,我需要看到你回溯到告訴你更多。考慮到這些版本中已經解決了2.3.5中的一些安全漏洞,我首先會嘗試更新到2.3.18。 – Brandt
一個新手的錯:),我來自rails 3,並且我已經安裝了bundle以便能夠在我的rails 2項目中安裝gems,但是我不知道我應該在使用bundler的情況下再次評論上一行在添加捆綁器的指令中沒有提及。 –
請看我的回答,告訴我這是否正確 –