Rails 3.x launcher script was found instead of Rails 4.x one.
来源:互联网 发布:it学什么有前途 编辑:程序博客网 时间:2024/04/30 11:03
Upgrading to Rails 4 in an existing application can be quite a switch. I decided to make the jump and handle any complications as they come. After about an hour or so I was mostly up and running, with a few issues here and there with gems I am using and their various versions.
Resources
As is often the case, the Railscast on the subject proved invaluable. There is also a robust compilation of Rails 4 links being maintainedhere.
RubyMine
If you use RubyMine, you may run across an error when trying to start your development server.
1
Error running Development: Rails 3.x launcher script was found instead of Rails 4.x one.
When a new Rails 4 application is created, it generates a ‘bin’ folder. Creating a new, blank Rails 4 application and copying its ‘bin’ folder into the existing project will resolve the error and allow the server to be started in RubyMine.
Gems
One gem that gave me a few errors was simple form. I updated my Gemfile to:
1
gem 'simple_form', '~> 3.0.0.rc'
However, when loading my forms in the browser, I received another error:
1
wrong number of arguments (3 for 2)
After doing some digging I found that this was actually related to the client_side_validations gem, which I was no longer using and safely removed this from the project. If you need this gem, there is abranch for Rails 4 which should help.
Looking forward to implementing the great additions in Rails 4.
- Rails 3.x launcher script was found instead of Rails 4.x one.
- Rails 3.0.x 使用 jquery
- rails 3.x 开发中出现的问题集合
- Ruby on Rails 2.x实践手记
- Mac OS X 10.9 安装 rails
- rails command not found
- Rails
- Rails
- Rails
- rails
- Rails
- rails
- Rails
- Rails
- Rails
- Rails
- Rails
- Rails
- 卡塔兰数
- 在线学习(Online Learning)
- 算法-----------数列最小值
- git常用的命令
- hibernate中一对多(多对一)双向关联
- Rails 3.x launcher script was found instead of Rails 4.x one.
- Android 开发环境搭建---elipse 安装ADT问题
- 【Android基础入门〖19〗】ExpandableListView酷我音乐界面的下拉菜单
- 关于PCB的小结
- 开发人员非常有用的Java功能代码
- 除法和强制类型转换的结合运用
- 一个简单的审批流程模型
- 求余语句%
- 当黑客是我的梦,求高手带我学技术