gpt4 book ai didi

ruby-on-rails - 无法为我的 Rails 应用程序安装引擎设计。我有 5 条与之相关的错误消息

转载 作者:太空宇宙 更新时间:2023-11-03 16:28:41 26 4
gpt4 key购买 nike

我正在尝试获得一些使用 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 View 。

我的 ruby 版本。

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

我的 rails 版本:

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

我在 Mac OS X Lion 上,在虚拟机上运行 Ubuntu 12.10。

请让我知道我需要提供哪些其他信息以更好地解决此问题。

最佳答案

我误解了情况。

长文本并不表示有任何错误。它建议可能的后续行动。

这本身不是错误。

请参阅我的问题中的 Ludovic 评论以进行澄清。

关于ruby-on-rails - 无法为我的 Rails 应用程序安装引擎设计。我有 5 条与之相关的错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19874063/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com