2

私は、Devise と Rails を使って実践的な経験を得ようとしています。

これは私が入力したものです:

rails generate devise:install

これは私が得たものです:

create  config/initializers/devise.rb
create  config/locales/devise.en.yml
===============================================================================

Some setup you must do manually if you haven't yet:

  1. Ensure you have defined default url options in your environments files. Here
     is an example of default_url_options appropriate for a development environment
     in config/environments/development.rb:

       config.action_mailer.default_url_options = { :host => 'localhost:3000' }

     In production, :host should be set to the actual host of your application.

  2. Ensure you have defined root_url to *something* in your config/routes.rb.
     For example:

       root :to => "home#index"

  3. Ensure you have flash messages in app/views/layouts/application.html.erb.
     For example:

       <p class="notice"><%= notice %></p>
       <p class="alert"><%= alert %></p>

  4. If you are deploying on Heroku with Rails 3.2 only, you may want to set:

       config.assets.initialize_on_precompile = false

     On config/application.rb forcing your application to not access the DB
     or load models when precompiling your assets.

  5. You can copy Devise views (for customization) to your app by running:

       rails g devise:views

===============================================================================

これは私の最新のコミットです。https://github.com/simkimsia/riding-rails-with-angularjs/commit/dc8df19b30237b1a44fb8cf8bc2b9d343c4ce47f

ご覧のとおり、最初の 3 つの問題は既に解決しています。

私は使用Herokuしていませんし、Devise ビューをコピーする必要もないと確信しています。

私のルビーバージョン。

www-data@ubuntu:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

私のレールのバージョン:

www-data@ubuntu:~$ rails -v
Rails 4.0.1

私は Mac OS X Lion を使用しており、仮想ボックスで Ubuntu 12.10 を実行しています。

この問題のトラブルシューティングを改善するために提供する必要があるその他の情報を教えてください。

4

1 に答える 1