Category Archives: Error
ActionView::Template::Error Couldn’t find file ‘jquery-ui’ with Rails 3.2
Today, I have start working after 6 months with one of my existing Ruby on Rails application and found the mentioned error. And then found, jquery-rails removed the jQuery UI and recommended to use jquery-ui-rails or downgrade the gem version. To use latest version:Add jQuery UI in to the application.js: //= require jquery.ui.all Add jQuery…
Uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
This error may occur to run older Rails application for conflicting with rubygems version. After a long googling I’ve come out in to following three solutions: Using Bundler.:Click here if you are interested to see the solution. Changing rubygems version: Downgrade the rubygems to an earlier version using gem update –system {version} Add “require ‘thread’”…
Google weather API not working
Recently google has shutdown their weather API silently which breaks one of my clients first page application name Greenarrow.com. I think many developers and users were (and still are) outraged, but at least they have some time to breathe as because iGoogle isn’t going away until November 1, 2013. So, there are still one year…
Javascript not working – NetworkError: 404 Not Found
Yesterday, I have deployed an application on Ubuntu server but the javascript was no longer working after configuring the virtual host. I have taken following steps to find the problem: Viewed the HTML source code using firebug and found page not found error Checked the .htaccess file, but there were no problem Tried a test…
Undefined local variable or method `version_requirements’ for …
I was getting the error while installing an older rails application. After googling I’ve got the solution from a discussion thread to add following block in right before the initialization in to config/environment.rb and worked for me. if Gem::VERSION >= “1.3.6” module Rails class GemDependency def requirement r = super (r == Gem::Requirement.default) ? nil…
LF will be replaced by CRLF
I was getting following message while trying to add files to GIT index: Warning: LF will be replaced by CRLF …. By google search I found that – whenever tried to add files to the repository, git thinks that, the file is a text file and all files automatically will have their LF line endings…
Unpacked gem has no specification file
I started working on a new rails project and in every time from command line operation getting this type of irritating message: config.gem: Unpacked gem ….. in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this. I run rake gems:refresh_specs but the problem isn’t fixed. Moreover, tried by creating specification file as well….
’rails’ is not recognized as an internal or external command, operable program or batch file
You might experience the problem due to the following reasons: You haven’t installed Rails Rails path cannot be found Installed Rails using a ‘special’ installer To resolve the issue, uninstall rails installation from your PC and try a normal installation through command prompt by using following command: gem install rails –include-dependencies Note: Be sure, you…
‘nmake’ is not recognized as an internal or external command, operable program or batch file
I have experienced the problem due to the version difference of rubygems installed on my developer PC with gems. I have downgraded the rubygems, to choose the right versions and solved the problem. After completing the installations, updated all of my gems which did not generate any errors. If you still experience the problem then…
The bundled mysql.rb driver has been removed from Rails 2.2
After two months, I have started working on rails again and upgraded Rails to 2.3.2 on my laptop. After upgraded when I have tried to run a sample rails application and got following errors: => Booting WEBrick=> Rails 2.3.2 application starting on http://0.0.0.0:3000!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install…