ruby on rails - "Gemfile syntax error" after editing Gemfile, running bundle install or bundle update -


i rails newbie , trying follow http://railstutorial.org guide. using:

  • gem 2.0.3
  • bundler 1.3.5
  • rails 3.2.13
  • ruby 2.0.0-p195

when perform bundle update or bundle install after editing gemfile, following errors:

roberts-imac-6:first_app bobbaird001$ bundle update **gemfile syntax error:** roberts-imac-6:first_app bobbaird001$ bundle install **gemfile syntax error:** 

here gemfile (i have removed rows commented out)

source 'https://rubygems.org'  gem 'rails', '3.2.13' gem 'sqlite3', '1.3.5' end group :assets   gem 'sass-rails',   '~> 3.2.3'   gem 'coffee-rails', '~> 3.2.2'   # see https://github.com/sstephenson/execjs#readme more supported runtimes   # gem 'therubyracer', :platforms => :ruby   gem 'uglifier', '>= 1.2.3'cdacd   end   gem 'jquery-rails', '2.0.2'   end 

remove end below sqlite , jquery-rails, remove cdacd @ end of uglifier, , correct indentation this:

source 'https://rubygems.org'  gem 'rails', '3.2.13' gem 'sqlite3', '1.3.5'  group :assets   gem 'sass-rails',   '~> 3.2.3'   gem 'coffee-rails', '~> 3.2.2'   # see https://github.com/sstephenson/execjs#readme more supported runtimes   # gem 'therubyracer', :platforms => :ruby   gem 'uglifier', '>= 1.2.3' end  gem 'jquery-rails', '2.0.2' 

only gems inside do blocks need indentation.

hope helps clarify things.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -