Forum: Ruby on Rails back-porting 1.1.1 app to 1.0 rails server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Db2175eb86669d396b8596d11478f5ef?d=identicon&s=25 Cayce Balara (yardboy)
on 2006-05-23 17:34
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.
30269682335f1fb247d71969fa715b5e?d=identicon&s=25 Roberto Saccon (rsaccon)
on 2006-05-23 18:09
(Received via mailing list)
Why don't you put rails 1.1.1 into the vendor directory ?
Db2175eb86669d396b8596d11478f5ef?d=identicon&s=25 Cayce Balara (yardboy)
on 2006-05-23 18:48
Roberto Saccon 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!
043643cf9468017f9afd8913bfa8d73d?d=identicon&s=25 Daniel KamiÅ?ski (Guest)
on 2006-05-23 20:51
(Received via mailing list)
Dnia 23-05-2006 o 18:48:14 Cayce Balara <house@balara.com> napisaÅ?:

> Roberto Saccon 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 ;-)
Db2175eb86669d396b8596d11478f5ef?d=identicon&s=25 Cayce Balara (yardboy)
on 2006-05-24 14:35
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.
043643cf9468017f9afd8913bfa8d73d?d=identicon&s=25 Daniel KamiÅ?ski (Guest)
on 2006-05-24 19:35
(Received via mailing list)
Dnia 24-05-2006 o 14:35:25 Cayce Balara <house@balara.com> 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â? ;-)
34f5b045aec62235c17458650ea75353?d=identicon&s=25 Steve Koppelman (hatless)
on 2006-05-24 19:48
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 Balara 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.
Db2175eb86669d396b8596d11478f5ef?d=identicon&s=25 Cayce Balara (yardboy)
on 2006-05-30 17:36
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
This topic is locked and can not be replied to.