Hi all,
My rails application’s current version is 1.1.6, I want to migrate it to
rails 2.2.2.
Please state me the steps what I need to do.
Thanks in advance,
Raju
Hi all,
My rails application’s current version is 1.1.6, I want to migrate it to
rails 2.2.2.
Please state me the steps what I need to do.
Thanks in advance,
Raju
I did the following.
I changed the rails version to 2.2.2 in environment.rb -
RAILS_GEM_VERSION = ‘2.2.2’ unless defined? RAILS_GEM_VERSION
from project path I ran a rake task $ rake rails:update
when i run $ ruby script/about. I get the following output. Please
help me. What next to do - I am converting my rails app from 1.1.6 to
2.2.2.
*******************************************************************
/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in
send': undefined method
cache_template_extensions=’ for
ActionView::Base:Class (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in
initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in
each’
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in
initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in
each’
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in
initialize_framework_settings' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:154:in
process’
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in
send' from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in
run’
from /home/raju/radrails_workspace/st/config/environment.rb:13
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/about.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from script/about:3
Raju A. wrote:
Hi all,
My rails application’s current version is 1.1.6, I want to migrate it to
rails 2.2.2.
No, you probably want to migrate to Rails 2.3, which is the current
version.
Please state me the steps what I need to do.
Search this forum for detailed information. In brief:
1.1.6 to 2.3 will be a huge jump. You will probably find it easier to
do several smaller upgrades – say, 1.1 to 1.2, then 1.2 to 2.0, and so
on.
Thanks in advance,
Raju
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Thank you Marnen… I am following the same steps. I am directly
upgrading to rails 2.2.2
You may also find this helpful:
http://wiki.rubyonrails.org/getting-started/upgrading
Especially with links to the release notes to find out what has
changed across versions.
Cheers,
Nicholas
On Sep 2, 8:48 am, Raju A. [email protected]
A useful thing I found when I just completed (mostly) the same trip was to create a dummy project (rails -d mysql tst) using the version of rails I wanted to go to. I was then able to compare the config files one by one to see what had changed. There are a lot of changes in config files in that jump and the changes are not automaticly made by the rake task. You will have to go in and see how each file changed and decide what you want to do. In a lot of the cases you will just replace your current version of the file with a copy of the later version. In some cases you will have some reason to do differently just make sure you understand what the differences are and why you want what you want. It is not a rote task!You may also find this helpful:http://wiki.rubyonrails.org/getting-started/upgrading
Especially with links to the release notes to find out what has
changed across versions.Cheers,
NicholasOn Sep 2, 8:48 am, Raju A. <[email protected]>
wrote:
Thank you Marnen.... I am following the same steps. I am directly upgrading to rails 2.2.2 -- Posted viahttp://www.ruby-forum.com/.
thanks for your reply,
when I run the rake task $ rake rails:update . My default javascript
files ie
Have changed, can I use the new version of these files, is there
anything depreciated compared to the older version.
Thanks in advance,
Raju
While migrating rails project from 1.1.6 to 2.2.2, I am facing the
following problems
raju@raju-desktop:~/radrails_workspace/st$ ruby script/about
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/base.rb:1833:in
method_missing': undefined local variable or method
acts_as_tree’ for
#Class:0xb6b5325c (NameError)
from /home/raju/radrails_workspace/st/app/models/category.rb:13
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in
require_or_load’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:221:in
depend_on' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:133:in
require_dependency’
from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:368:in
load_application_classes' ... 10 levels... from /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/about.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require’
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require’
from script/about:3
Please help me,
Thanks in advance,
Raju
Cheers,
Nicholas
On Thu, Sep 3, 2009 at 3:40 AM, Raju
I am getting the following error when i use form_remote_tag in rails
2.2.2
compile error
/home/raju/radrails_workspace/st/app/views/admin/predictive_text/_predictive_search.rhtml:19:
syntax error, unexpected ‘)’
}) do ).to_s); @output_buffer.concat “\n”
^
/home/raju/radrails_workspace/st/app/views/admin/predictive_text/_predictive_search.rhtml:70:
syntax error, unexpected kENSURE, expecting kEND
/home/raju/radrails_workspace/st/app/views/admin/predictive_text/_predictive_search.rhtml:72:
syntax error, unexpected $end, expecting ‘)’
Thanks for your reply Nicholas,
Now the only problem I am facing in my application is “form_remote_tag”
How to use form_remote_tag in 2.2.2
I am trying to use it in this way in 2.2.2
<%= form_remote_tag({:url => {:controller => ‘some_controller’,
:action => ‘some_action’},
:update => ‘some_div’,
:loading =>
“Effect.Appear(‘indicator’);”,
:complete => “Effect.Fade(‘indicator’);”,
:html => {:id => ‘some_id’ }
}) do %>
-----------------All Text fields & checkboxes etc etc…
<%end%>
before it was (in 1.1.6)
<%= form_remote_tag({:url => {:controller => ‘some_controller’,
:action => ‘some_action’},
:update => ‘some_div’,
:loading =>
“Effect.Appear(‘indicator’);”,
:complete => “Effect.Fade(‘indicator’);”,
:html => {:id => ‘some_id’ }
}) %>
-----------------All Text fields & checkboxes etc etc…
<%end_form_tag%>
Please help me to use form_remote_tag in rails 2.2.2
Thanks in advance,
Raju
Thanks a lot for your replies, I figured out the problem with
form_remote_tag
Please go through this link
http://mentalized.net/journal/2007/03/13/rails_20_deprecations/
Thanks & regards,
Raju
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs