I created a new rails app in my /tmp directory.
I noticed that the Gemfile had something new relating to the asset
group.
The app I am working on was created with rails 3.0.x and hence, I made
a change to my Gemfile to use rails 3.1.0 and ran "bundle install" to
get rails 3.1.0 in.
------ This is what I saw in the Gemfile of a new 3.1.0 app I created
(start) --------
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
------ This is what I saw in the Gemfile of a new 3.1.0 app I created
(end) --------
Seeing that and the fact that I use jquery and not coffee script or
sass (for css),
I altered my own Gemfile of the application which I am encountering a
problem with. See below.
------ This is what my current gemfile looks like (start) --------
source 'http://rubygems.org'
gem 'rails', '3.1.0'
gem 'devise'
gem 'factory_girl_rails' #, "~> 1.2"
gem 'paperclip'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'jquery-rails', '>= 1.0.12'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
# gem 'sass-rails', " ~> 3.1.0"
# gem 'coffee-rails', "~> 3.1.0"
gem 'jquery-rails', '>= 1.0.12'
gem 'uglifier'
end
# clean up test db after each spec test run
gem "database_cleaner", "~> 0.6.7"
group :development, :test do
gem "rspec-rails", ">= 2.0.0"
gem "webrat", ">= 0.7.2"
end
------ This is what my current gemfile looks like (end) --------
I restarted my server and yet there's still no luck in accessing the
assets/javascripts/application.js file in my browser :(
Any ideas?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment