# Back-porting 1.1.1 app to 1.0 rails server

**URL:** <https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386>\
**Category:** Rails\
**Created:** [May 23, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386 "2006-05-23T17:34:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 23, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/1 "2006-05-23T17:34:26Z")

</div>

I’ve been developing new application on local machine in rails 1.1.1.  
Hosting provider (godaddy) is at rails 1.0.0 and not upgrading any time  
soon I’m told. I set “RAILS\_GEM\_VERSION = ‘1.0.0’” in my environment.rb  
file to get past inital errors, but now I’m getting the following error:

/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/initializer.rb:256:in  
`send': undefined method`cache\_template\_extensions=’ for  
ActionView::Base:Class (NoMethodError)

Is there any way around this (short of changing hosting providers)? Is  
there any way for me to config my local development environment to avoid  
1.1.1 \> 1.0.0 migration issues?

many thanks.

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 23, 2006, 6:09pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/2 "2006-05-23T18:09:27Z")

</div>

Why don’t you put rails 1.1.1 into the vendor directory ?

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 23, 2006, 6:48pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/3 "2006-05-23T18:48:14Z")

</div>

Roberto S. wrote:

> Why don’t you put rails 1.1.1 into the vendor directory ?

Didn’t know I could. That’ll get me headed in the right direction, I’m  
sure.

thanks!

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 23, 2006, 8:51pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/4 "2006-05-23T20:51:28Z")

</div>

Dnia 23-05-2006 o 18:48:14 Cayce B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) napisaÅ?:

> Roberto S. wrote:
> 
> > Why don’t you put rails 1.1.1 into the vendor directory ?
> 
> Didn’t know I could. That’ll get me headed in the right direction, I’m  
> sure.
> 
> thanks!

Hi

Try â??rake rails:freeze:gemsâ? in rails dir on your mashine and then copy  
it  
to destination host, simple 😉

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 24, 2006, 2:35pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/5 "2006-05-24T14:35:25Z")

</div>

Thanks Daniel. I had kind of gotten there through research after  
previous post, except the commands I’ve tried are “rake freeze\_edge” and  
“rake freeze\_gems”. Are there substantive differences between your  
version of the command and mine?

c.

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 24, 2006, 7:35pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/6 "2006-05-24T19:35:23Z")

</div>

Dnia 24-05-2006 o 14:35:25 Cayce B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) napisaÅ?:

> Thanks Daniel. I had kind of gotten there through research after  
> previous post, except the commands I’ve tried are “rake freeze\_edge” and  
> “rake freeze\_gems”. Are there substantive differences between your  
> version of the command and mine?
> 
> c.

I think there is no difference between â??rake freeze\_gemsâ? and â??rake  
rails:freeze:gemsâ?.  
This second is produced by â??rake -Tâ? 😉

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 24, 2006, 7:48pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/7 "2006-05-24T19:48:54Z")

</div>

In Rails 1.1, rake tasks were given new, namespaced names for better  
organization and easier tool integration. freeze\_gems became  
rails:freeze:gems.

Cayce B. wrote:

> Thanks Daniel. I had kind of gotten there through research after  
> previous post, except the commands I’ve tried are “rake freeze\_edge” and  
> “rake freeze\_gems”. Are there substantive differences between your  
> version of the command and mine?
> 
> c.

---

<div class="post-metadata">

**Author:** ![yardboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/9de0a6/32.png) [@yardboy](https://www.ruby-forum.com/u/yardboy)\
**Post date:** [May 30, 2006, 5:36pm UTC](https://www.ruby-forum.com/t/back-porting-1-1-1-app-to-1-0-rails-server/61386/8 "2006-05-30T17:36:56Z")

</div>

Progress has been made, but still having trouble with this…

I performed a rails upgrade locally and did a “rake rails:freeze:edge”  
before uploading my app to host. As can be seen in log snippet below,  
I’m getting everything started from my vendor/plugins/rails version  
(fcgi\_handler.rb, dispatcher.rb), but when it gets to an ActiveRecord  
call, it’s calling the host gem version 1.13.2 instead of the 1.14.2  
version frozen in vendor/plugins/rails/activerecord.

Can anyone shed some light on this? Do I need to run “rake  
rails:freeze:gems” in addition to “rake rails:freeze:edge” before  
uploading?

Thanks.  
c.

NoMethodError (undefined method `verify_active_connections!' for ActiveRecord::Base:Class): /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in`method\_missing’  
/vendor/plugins/rails/railties/lib/dispatcher.rb:70:in  
`prepare_application' /vendor/plugins/rails/railties/lib/dispatcher.rb:37:in`dispatch’  
/vendor/plugins/rails/railties/lib/fcgi\_handler.rb:150:in  
`process_request' /vendor/plugins/rails/railties/lib/fcgi_handler.rb:54:in`process!’  
/usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in  
`each_cgi' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in`each\_cgi’  
/vendor/plugins/rails/railties/lib/fcgi\_handler.rb:53:in `process!' /vendor/plugins/rails/railties/lib/fcgi_handler.rb:23:in`process!’  
/home/content/j/p/s/jpsrake/html/jpsapp/public/dispatch.fcgi:24
