Tag: custom web application
Upgrading Rails 3.0 Beta4 to Rails 3.0 Release Candidate | Ruby on …
by on Aug.08, 2010, under Ruby and Rails
Some of you, Ruby on Rails developers that like being on the edge with new technologies, are working on a projects utilizing Ruby on Rails beta4 version. For example, in Selleo (where i work) there are two projects currently being developed on Rails 3. We decided that these Ruby on Rails projects (if succesful) will have a long time of post launch support in developing new features and it will be easier if the engines of these custom web application will be Rails 3 than Rails 2.x (Rals 2.x will end it’s life sooner or later).
Also it will be more cost effective to port a Ruby on Rails 3 beta application to Ruby on Rails 3 official release than from Ruby on Rails 2.x, since there are far more similarities between the first two than between Rails 2.x and Rails 3.0.
So let me write a short articles about problems we have encountered while updating one of our custom Ruby on Rails application from beta4 to RC version.
So first thing first, we need to go to the gemfile and change gem ‘rails’ to gem ‘rails, ‘3.0.0.rc’ and hope for best, since obviously we do not want any problems to occur and take our precious devewloment time.
After we’ve run bundle install in our console we’ve encountered first error – conflict on bundler itself saying that “No compatibile versions could be found for required dependencies” for our Ruby on Rails application.
As you may have noticed, Rails Release Candidate introduced bundler version 1.0. So the solution for this is to: gem install bundler.
Next, we have encountered soem depreation warning, since our routes looked like this:
OurApp::Application.routes.draw do |map|
OurApp::Application.routes.draw do
Fortunatelly, after that our Ruby on Rails application started without complaints. If we encounter some more incompatibilities, I’ll let you know about them and update this post.
Upgrading Rails 3.0 Beta4 to Rails 3.0 Release Candidate | Ruby on …