Rails 3.x launcher script was found instead of Rails 4.x one.
2013-10-27 15:57
633 查看
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.
Railscast on the subject proved invaluable. There is also a robust compilation of Rails 4 links being maintained
here.
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.
However, when loading my forms in the browser, I received another error:
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 a
branch for Rails 4 which should help.
Looking forward to implementing the great additions in Rails 4.
their various versions.
Resources
As is often the case, theRailscast on the subject proved invaluable. There is also a robust compilation of Rails 4 links being maintained
here.
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. |
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' |
1 | wrong number of arguments (3 for 2) |
branch for Rails 4 which should help.
Looking forward to implementing the great additions in Rails 4.
相关文章推荐
- xcode编译时候出现clang: error: linker command failed with exit code 1 (use -v to see invocation)的解决方法
- Vmware10下安装Mac OS X Mountain Lion(10.8.5)
- 语音训练系统ant4 sphinxtrain
- RAII:互斥量
- [转]smail语法 详解
- Railscasts #2 Dynamic find_by Methods 动态find_by方法
- Kaitou Kid - The Phantom Thief (1) 第三次周赛
- Chinese remainder theorem again(hdu1788中国剩余定理)
- Raising Modulo Numbers(poj1995快速模运算)
- ubuntu10安装ideaiu12出现错误解决
- paip. 提升性能---hibernate的缓存使用 总结
- paip. 提升性能---hibernate的缓存使用 总结
- paip.解决access出现 -2147467259 无效的参数量
- paip.解决access出现 -2147467259 无效的参数量
- ognl.MethodFailedException: Method "setPic" failed for object com.employment.action.NewsAction@aac66
- MAINTAINING ANONYMITY WHILE USING BITCOINS
- Daily Scrum 10.26
- Validation failed for one or more entities
- Daily Scrum 10.26
- 解决:Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_li ..