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. -- Posted via http://www.ruby-forum.com/.
Why don''t you put rails 1.1.1 into the vendor directory ? On 5/23/06, Cayce Balara <house@balara.com> wrote:> > 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. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/03d2ec89/attachment.html
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! -- Posted via http://www.ruby-forum.com/.
Daniel Kamiński
2006-May-23 18:47 UTC
[Rails] Re: back-porting 1.1.1 app to 1.0 rails server
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 ;-)
Cayce Balara
2006-May-24 12:36 UTC
[Rails] Re: Re: back-porting 1.1.1 app to 1.0 rails server
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. -- Posted via http://www.ruby-forum.com/.
Daniel Kamiński
2006-May-24 17:34 UTC
[Rails] Re: Re: back-porting 1.1.1 app to 1.0 rails server
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? ;-)
Steve Koppelman
2006-May-24 17:51 UTC
[Rails] Re: Re: back-porting 1.1.1 app to 1.0 rails server
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.-- Posted via http://www.ruby-forum.com/.
Cayce Balara
2006-May-30 15:37 UTC
[Rails] Re: Re: back-porting 1.1.1 app to 1.0 rails server
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 -- Posted via http://www.ruby-forum.com/.