小编sid*_*dhu的帖子

rails服务器参数错误

devise_install成功安装设备后,重新启动服务器时,我收到以下错误.请帮我.我已经解决了很多问题而且没有得到正确答复.

错误:

bfmt048@bfmt048-System-Product-Name:~/demo$ rails s
=> Booting WEBrick
=> Rails 4.0.0 application starting in development on  zero.zero.zero.zero:threethousand
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Exiting
/home/bfmt048/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/activemodel-4.0.0/lib/active_model/validations/format.rb:46:in `check_options_validity': The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option? (ArgumentError)
    from /home/bfmt048/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/activemodel-4.0.0/lib/active_model/validations/format.rb:20:in `check_validity!'
    from /home/bfmt048/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/activemodel-4.0.0/lib/active_model/validator.rb:143:in `initialize'
    from /home/bfmt048/.rbenv/versions/2.0.0-rc2/lib/ruby/gems/2.0.0/gems/activemodel-4.0.0/lib/active_model/validations/with.rb:87:in `new'
    from …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails devise

5
推荐指数
1
解决办法
2079
查看次数

heroku和github之间有什么区别

什么意思是在rails中生产,是什么意思同时使用github和heroku之间的区别.我使用github作为备份/我们所有人将如何使用heroku.有必要吗 ??

production github heroku

3
推荐指数
1
解决办法
5197
查看次数

标签 统计

devise ×1

github ×1

heroku ×1

production ×1

ruby-on-rails ×1