Peter P. wrote in post #1032037:
I had the same problem today as you described, and this is how I solved
it. I’m not sure if this is the “best” or most appropriate solution, but
it worked.
I changed my Gemfile and added the sqlite3 gem. After restarting the
server and reloading the page I received a new error:
ActionView::Template::Error (couldn’t find file ‘jquery’
So, I went back to the Gemfile again and added the jquery-ruby gem.
This time everything worked as expected. Maybe this has something do do
with the version of Rails and Ruby I/we have running? I’m running the
following:
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]
Rails 3.1.1
Below is my Gemfile for the curious. Using this my sample app is working
fine now.
source ‘http://rubygems.org’
gem ‘rails’, ‘3.1.1’
Bundle edge Rails instead:
gem ‘rails’, :git => ‘git://github.com/rails/rails.git’
gem ‘sqlite3’
gem ‘sqlite3-ruby’, ‘1.3.1’, :require => ‘sqlite3’
gem ‘jquery-rails’
group :development do
gem ‘rspec-rails’, ‘2.0.1’
end
group :test do
gem ‘rspec’, ‘2.0.1’
gem ‘webrat’, ‘0.7.1’
end
Thanx!
I had to slightly mod my Gemfile from what have, but now it works!
My Gemfile:
source ‘http://rubygems.org’
gem ‘rails’, ‘3.1.1’
Bundle edge Rails instead:
gem ‘rails’, :git => ‘git://github.com/rails/rails.git’
gem ‘sqlite3’
gem ‘sqlite3-ruby’, ‘1.3.1’, :require => ‘sqlite3’
gem ‘jquery-rails’
group :development do
gem ‘rspec-rails’, ‘2.0.1’
end
group :test do
gem ‘rspec’, ‘2.0.1’
gem ‘webrat’, ‘0.7.1’
end
in production environments by default.
group :assets do
gem ‘sass-rails’, ‘~> 3.1.4’
gem ‘coffee-rails’, ‘~> 3.1.1’
gem ‘uglifier’, ‘>= 1.0.3’