I am new to Ruby on Rails, and I have been following Mackenzie Child's tutorial on how to make a Forum app using Devise, Haml, and Simple_Form. I'm using Aptana Studio 3 as an IDE on Windows 10 O.S. I'm using Ruby 2.2.0 and Rails version 188.8.131.52.
I'm having two issues:
1) I am unable to destroy a post after creating it (as Mackenzie illustrates at around time = 17:30).
>You have requested: coffee-script-source = 1.8.0
>The bundle currently has coffee-script-source locked at 1.10.0.
>Try running 'bundle update coffee-script-source'
>If you are updating multiple gems in your Gemfile at once,
>try passing them all to 'bundle update'"*
> <%= csrf_meta_tags %>
> <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-
>track': 'reload' %>
><%= yield %>
>ExecJS::ProgramError in Posts#index
>Showing c:/psychweb/forum/app/views/layouts/application.html.erb where line #7 raised:
>TypeError: Object doesn't support this property or method
>Application Trace | Framework Trace | Full Trace
>gem 'rails', '184.108.40.206'
># Use sqlite3 as the database for Active Record
># Use SCSS for stylesheets
>gem 'sass-rails', '~> 5.0'
>gem 'uglifier', '>= 1.3.0'
># Use CoffeeScript for .coffee assets and views
>gem 'coffee-rails', '~> 4.1.0'
># See https://github.com/rails/execjs#readme for more supported runtimes
># gem 'therubyracer', platforms: :ruby
>gem 'jbuilder', '~> 2.0'
># bundle exec rake doc:rails generates the API under doc/api.
>gem 'sdoc', '~> 0.4.0', group: :doc
>gem 'haml', '~> 4.0.5'
>gem 'simple_form', '~> 3.0.2'
>gem 'devise', '~> 3.4.1'
>gem 'coffee-script-source', '=1.8.0'
># Use ActiveModel has_secure_password
># gem 'bcrypt', '~> 3.1.7'
>group :development, :test do
> gem 'byebug'
>group :development do
> gem 'web-console', '~> 2.0'
># Windows does not include zoneinfo files, so bundle the tzinfo-data gem
>gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Your gems are versioned when they install. So once upon a time you may not have specified the version of
bundler went out and installed the latest version of
1.10.0. Now you are trying to tell it to install a different version and it's mad because it already has a version installed.
Now that you have specified the version of
=1.8.0 in your
Gemfile you can run
bundle update coffee-script-source and it should get you the proper version and lock that in your
Gemfile.lock to remember that is the version you want.