Questions tagged [rails-3-upgrade]

Rails-3-Upgrade pertains to users who are trying to upgrade an existing 2.3+ Ruby on Rails Application to the more recent version, like 3.0 and up.

Rails-3-Upgrade pertains to users who are trying to upgrade an existing 2.3+ Ruby on Rails Application to the more recent version, like 3.0 and up.

Rails 3 marks the start of a lot of new additions and refinements to rails in comparison to the older Rails 2.3

There are 3 subsets of Rails 3 include 3.0.14, 3.1.6, 3.2.6

Detail on the changes and differences can be seen on the Release Notes for each build of Rails 3

3.0 Release Notes

3.1 Release Notes

3.2 Release Notes

Here are the tag wikis for each subset:

ruby-on-rails-3 tag wiki

ruby-on-rails-3.1 tag wiki

ruby-on-rails-3.2 tag wiki

Each of them have their own new additions that build off of earlier builds, 3.2.6 being the latest.

When Asking these Questions Involving Rails 3 Upgrade, be sure to first carefully check the Documentation on the Rails Guides

Ryan Bates has made screen casts available talking about the differences of the different versions and the steps to upgrade to each one:

http://railscasts.com

See the Ruby on Rails tag Wiki and the Ruby tag Wiki for More Information

89 questions
31
votes
2 answers

warning: already initialized constant PDF

Right now I am working on rails 3.0.0. If I run my project in terminal, I get this warning. Please help me. /usr/share/ruby-rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.0/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized…
chandrashekar
  • 609
  • 2
  • 7
  • 16
23
votes
2 answers

Can I update to Ruby 2.1.2 using Rails 3.2.3?

First of all, I think it isn't a prohibited question on StackOverflow since it's a precise question about environment, an objective question. But if it's prohibited, please tell me. Currently I'm developing a specific project that is using Ruby…
Paladini
  • 4,522
  • 15
  • 53
  • 96
10
votes
2 answers

Rails 3: undefined method `remote_form_for'

I have a fairly simple Rails remote form in HAML in a partial under shared/users: - remote_form_for :user, :url => { :controller => "users", :action => "create" } do |f| .field = f.label :name, t('name') = f.text_field :name .field =…
10
votes
2 answers

Should I upgrade from rails 2.3 to 3+ or wait until rails 4 is released and upgrade then?

I'm about to start working on porting a company's old rails ap from 2.3/1.87 to the most recent version of rails. Should I wait for rails 4, or should I just to 3.2? We're going to take the opportunity to make sure there is full test coverage, and…
9
votes
1 answer

Rails 3 yaml errors

I am currently upgrading my application from rails 2.3 to 3.0 and ruby 1.9.3. After making the required changes and trying to access the home page of my app i'm getting the following error. Psych::SyntaxError ((/apps/myapp/config/locales/en.yml):…
Sivakumar
  • 890
  • 1
  • 14
  • 27
8
votes
5 answers

What causes the "ArgumentError (dump format error)"?

While troubleshooting a misbehavior in Spree where the product list was not paginating and was only listing the first 10 products or so, I attempted to reproduce the error in my local development environment and on the first page load I received the…
Day Davis Waterbury
  • 2,052
  • 18
  • 31
8
votes
9 answers

When will you upgrade your app to Rails 3?

Now that the Rails 3 beta is here, let's take a little straw poll. Please tell us briefly what your application does and when you will upgrade it to Rails 3. Or, if you're not planning on upgrading any time soon, tell us what's stopping you.
John Topley
  • 113,588
  • 46
  • 195
  • 237
8
votes
0 answers

RVM - Ruby integration was extracted to a separate gem (`remove $LOAD_PATH.unshift`)

I was upgrading to Rails 3.2.6 (ruby 1.9.3-p194) and installing RVM on Debian and using Apache2 server (2.2.19). I used these very nice instructions: http://dalibornasevic.com/posts/21-rvm-and-passenger-setup-for-rails-2-and-rails-3-apps/ The Apache…
7
votes
2 answers

How to test if correct layout was used in controller in Rails 3

In Rails 2 I would do def assert_layout(layout_name) assert_equal layout_name, @response.layout end and: assert_layout 'layouts/layout_name' This doesn't work in rails 3 anymore (undefined method `layout'). How should I change the custom…
deb
  • 12,326
  • 21
  • 67
  • 86
7
votes
3 answers

Has anyone been able to get attachment_fu to work with rails 3?

I have a rails application that is being upgraded from Rails 2.3.5 to Rails 3. It uses attachment_fu for file uploads. We're trying to do this conversion without making DB changes, so I'd like to avoid changing to paperclip or carrierwave at this…
6
votes
2 answers

Exactly which content-inserting block helpers have changed behaviour in Rails 3?

The release notes for Rails 3.0 include this change: 7.4.2 Helpers with Blocks Helpers like form_for or div_for that insert content from a block use <%= now: <%= form_for @post do |f| %> ... <% end %> Your own helpers of that kind are expected…
Mark Longair
  • 446,582
  • 72
  • 411
  • 327
6
votes
2 answers

Upgrading Rails app from 3.2.6 to 3.2.8

I have a Rails app that was created using Rails 3.2.6. Now that 3.2.8 has been released, is this all I need to do to update the app? Edit Gemfile, changing the line gem 'rails', '3.2.6' to gem 'rails', '3.2.8' Run bundle update rails What about…
Mike
  • 9,692
  • 6
  • 44
  • 61
5
votes
3 answers

Upgrade Rails App From 1.2.3 to 3.1.0?

I'm working on Rails 1.2.3 version. Now I want to upgrade the Rails version as well as ruy version from 1.8.6 to 1.9.7. Is it a major pain to work with such older version but it is in running condition. Now i want advance features of Rails but not…
Rubyist
  • 6,486
  • 10
  • 51
  • 86
5
votes
1 answer

Custom filtering of parameters in rails 3 using config.filter_parameters

I'm working on upgrading from Rails 2.3.11 to 3.0.10, and am having trouble converting what is in the ApplicationController's filter_parameter_logging. I want to filter both certain parameters, and also filter them if they appear in the value of…
keithepley
  • 4,760
  • 3
  • 23
  • 41
5
votes
1 answer

Converting rails 2 generators to rails 3?

How difficult is it to convert rails 2 generators to rails 3? I keep finding useful plugins but then finding that the generators are only for rails 2. I realize some of it is just a convenience, but if migrating the generator to rails 3 is as…
1
2 3 4 5 6