是的,我读过
this.
这是我在我的production.log中得到的:
ActionView::TemplateError (undefined method `password' for #<User:0x2b0ddb58cdc0>) on line #11 of app/views/users/new.html.erb: 8: </p> 9: <p> 10: <%= f.label :password,"Password:" %><br /> 11: <%= f.password_field :password %> 12: </p> 13: <p> 14: <%= f.label :password_confirmation,"Password again:" %><br />
当我尝试:
$heroku rake db:reset RAILS_ENV=production
我明白了:
yeqynzfiku already exists (in /disk1/home/slugs/109616_e6df6f2_8837/mnt) Couldn't drop yeqynzfiku : #<ActiveRecord::StatementInvalid: PGError: ERROR: must be owner of database yeqynzfiku : DROP DATABASE IF EXISTS "yeqynzfiku">
我不知道这意味着什么.我也试过了
$heroku rake db:reset $heroku rake db:migrate RAILS_ENV=production $heroku rake db:migrate $heroku rake gems:install (for what it's worth)
在开发和生产模式下,一切都在本地运行良好.我的应用程序中有一个.gems文件,当我第一次推送到Heroku时,似乎安装了AuthLogic和Paperclip就好了.
难住了.谢谢.
解决方法
听起来你解决了它,但是有了这样的问题我发现它很方便做了一次heroku重启.
例如,在使用heroku rake db:migrate运行迁移之后,需要重新启动应用程序才能看到这些新列.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。