undefined local variable or method `version_requirements'
Thu Jun 30 11:01:00 -0700 2011
If you have a Rails 2.x app and hitting this, there is a simple fix while you wait to upgrade to Rails 3.
Edit your environment.rb file and inbetween the require ‘boot’ line and the Rails::Initializer line, insert the following Gem::VERSION if statement:
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
if Gem::VERSION >= "1.3.6"
module Rails
class GemDependency
def requirement
(super == Gem::Requirement.default) ? nil : super
end
end
end
end
Rails::Initializer.run do |config|
# ....
It’s a hack, it might break with later and later releases of RubyGems. But it allowed me to get a 2.3.x Rails app running on a fairly current rubygems.
Leave a Reply
Latest posts
- Encrypting Another Partition Using FileVault 2 on OSX Lion
- Installing Home Folder on Second Drive on OSX Lion
- A New World of Resources
- Rails Static Pages
- Twitter Replacing Rails? So?
- Engine Yard Cloud Backups Generating Zero Length Backups
- Our Rails Rumble Entry - StillAlive.com
- Renaming a controller and redirection in Rails 3
- Updating RailsPlugins.org to Rails 3 - Part 1
- A new protocol for social interaction
- What is a distributed social network?
- Bundler and Public Git Sources
- Getting Heroku, memcached and Rails 3 working
- Why Bundler?
- Rails Commit Access
- Introducing TellThemWhen
- rake RSpec & Cucumber uninitialized constant Rails::Boot::Bundler
- This Relationship is Worth Nothing
- Thank YOU...
- Inline Attachments for ActionMailer
- Upgrading RailsPlugins.org to Rails 3 - Part 1
- Stripping dollar signs and commas from a string
- Getting Rails 3 Edge with jQuery, RSpec and Cucumber using RVM
- Action Mailer, go Proc thyself
- The Real News Donation Drive
- ActionMailer ScreenCast and Article
- Installing RSpec for Rails 3
- I am speaking at RailsConf 2010
- Rails 3 Session Secret and Session Store
- If you're lazy and you know it write your specs!
- Bundler - uninitialized constant ActionController
- Bundle Me Some Sanity
- How to use Mail / ActionMailer 3 with GMail SMTP
- Put your mailer where the action is!
- Why Force a Choice?
- How to make an RSS feed in Rails
- Rails 3 Routing with Rack
- Bundle me some Rails
- Helping out in Haiti
- Watch your self
- Is Rails 3.0 a Game Changer?
- Where did the scripts go?
- validates :rails_3, :awesome => true
- New Rails Version 3.0 Guides Online
- New ActionMailer API in Rails 3.0
- Mail gem version 2 released
- How to rename a Rails 3 Application
- Rails 3.0 Examples
- DECCA Driving Day
Latest comments
- Quantspring.com
This is a really great post I f...
- Maxine
Maybe it has a connection with ...
- Axel W
Had the same problem lots of ti...
- cloud computing anbieter
I was there and I see you confe...
- cloud computing anbieter
I was there and I see you confe...
Categories
Tag Cloud
AJAX ARGH! ActiveRecord Ajax Apache Apple Asterisk Australia Copy Database Development Feedburner Gem server Google Human Rights Javascript L. Ron Hubbard MS SQL Server MacOSX Mail Mephisto Not Programming OpenBSD Opensource Performance Personal Integrity PostgreSQL Programming Prototype Puzzle RDoc REST RESTful Rails RSPec RSpec Rails Rails Tips Rspec Ruby Ruby on Rails Ruby on Rails Tips Ruby on rails Tips SQL SQLServer SVN Scientologist Scientology Site Stats Soekris Soekris net5501 TMail Textmate Tips Windows World about mikel anti drug apache contributing daemon documentation drugs illustrator javascript lambda mail mephisto newspapers nitro open source opensource photoshop productivity programming railscasts rspec ruby ruby on rails rubyforge scientology seo sitemap sqlserver tips tmail tom cruise unix tricks vector graphicsArchives
- November 2009 (1)
- October 2009 (2)
- September 2009 (2)
- August 2009 (0)
- July 2009 (1)
- June 2009 (0)
- May 2009 (1)
- April 2009 (0)
- March 2009 (0)
- February 2009 (0)
- January 2009 (2)
- December 2008 (0)
- November 2008 (5)
- October 2008 (0)
- September 2008 (1)
- August 2008 (0)
- July 2008 (2)
- June 2008 (13)
- May 2008 (7)
- April 2008 (18)
- March 2008 (8)
- February 2008 (5)
- January 2008 (7)
- December 2007 (20)
- November 2007 (22)




Sat Nov 05 01:55:20 -0700 2011
Kind of a bit detailed post but worth reading. public administration degree | performing arts school | online fire science degree | Natural sciences School | Law School
Tue Nov 08 19:28:38 -0800 2011
Quite a few participants expressed interest in the libertarian organizations on campus, such as YAL, Youth for Ron Paul, and Libertarian Longhorns (a more general blanket libertarian organization with which UT’s YAL and Youth for Ron Paul chapters coordinate).
Sat Oct 01 11:31:00 -0700 2011
I have been having this bug in my Rail 2.x application. I have searched a lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. I have certain down payments this month so I can’t afford to lose any more of my working hours. I really appreciate that you have bothered to share a fix for this , I need to have smtp server too. I hope it will work.
Fri Oct 21 01:45:05 -0700 2011
Quite a few participants expressed interest in the libertarian organizations on campus, such as YAL, Youth for Ron Paul, and Libertarian Longhorns (a more general blanket libertarian organization with which UT’s YAL and Youth for Ron Paul chapters coordinate).
Tue Dec 27 03:02:26 -0800 2011
Its really a nice article. It has good content. Thanks for sharing it.
Tue Jan 10 02:39:02 -0800 2012
In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.
Regards,
Personal statement services review
Tue Jan 10 02:39:38 -0800 2012
In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.
Regards,
Personal statement services review
Wed Jan 18 03:24:54 -0800 2012
it is a nice solution for this issue… I will try to adapt it for my projects.
Sun Jan 22 21:42:07 -0800 2012
It is and always has been completely fantastic.
Tue Jan 31 04:13:44 -0800 2012
The best person to give you medical advice about liver disease is your doctor. Best thing we can do is recommend perhaps a good doctor if you need a second or third opinion. casino
Sun Feb 05 20:19:04 -0800 2012
In most languages, local variables are automatic variables stored on the call stack directly. This means that when a recursive function calls itself, local variables in each instance of the function are given separate memory address space. Thanks.
Fri Feb 10 23:38:16 -0800 2012
If you have a Rails 2.x app and hitting this, there is a simple fix while you wait to upgrade to Rails 3. dubai business set up
Fri Feb 17 05:47:10 -0800 2012
Good point, but I think that is the underlying point. I don’t blame the employee in this situation, it is an overal state of play in the Hotel and the culture that surrounds it.
Sat Feb 25 21:04:20 -0800 2012
A lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. Thanks.
Regards,
Paradise Valley Homes
Sun Mar 04 13:55:03 -0800 2012
i Agree in I think that is the underlying point.
Fri Mar 09 02:46:13 -0800 2012
All i can say about this website is awesome thanks man i believe you rich your goal thanks for this site, thanks for sharing.
Mon Mar 12 02:36:43 -0700 2012
It is a simple and clean code. It work perfect! Thanks!
Thu Mar 15 21:58:55 -0700 2012
There are many people searching about that now they will find enough sources by your tips. I have really enjoyed reading all of its posts.
Mon Mar 19 18:03:15 -0700 2012
A lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours. Thanks.
Regards,
Carol
Mon Mar 26 00:22:07 -0700 2012
This is really a nice blog. I have read many blogs but this one really satisfies your real needs. I just love to bookmark this page. Really was not expecting that when I started off studying.Security in Slough | Security in St Albans | Security Companies London | Security in Crawley | Security in St Davids | Car breakers in Birmingham
Tue Mar 27 03:37:22 -0700 2012
. I have certain down payments this month so I can’t afford to lose any more of my working hours.
Thu Apr 05 23:44:50 -0700 2012
The article has really peaks my interest. I am going to bookmark your web site and hold checking for brand new information.
Fri Apr 20 04:53:03 -0700 2012
I have been having this bug in my Rail 2.x application. I have searched a lot of resources for a fix for this because this bug is too annoying and it bugs me. Moreover it is taking away a great deal of time from my working hours.