26 Dec 2013, 14:17
Generic-user-small

Justin Calleja (5 posts)

** See last comment. Basically, do not use code which comes with course… use the one on github: https://github.com/derickbailey/hands-on-backbone **

In order to get the dependencies, change the following in your Gemfile:

gem ‘sinatra-content-for’

to:

gem ‘sinatra-content-for2’

Otherwise, you (at least I got) will get:

“Could not find sinatra-content-for-0.2 in any of the sources”

Also, to remove this warning:

“The source :rubygems is deprecated because HTTP requests are insecure. Please change your source to ‘https://rubygems.org’ if possible, or ‘http://rubygems.org’ if not.”

Change:

source :rubygems

to:

source ‘https://rubygems.org’

26 Dec 2013, 14:05
Generic-user-small

Justin Calleja (5 posts)

I don’t see how I can edit the title. “Variations”… would change. Still follow readme.md. Just change the Gemfile.

26 Dec 2013, 14:16
Generic-user-small

Justin Calleja (5 posts)

Just noticed this in one of the comments… did I miss this on the product download page? In any case, it should be more obvious that there’s the code on github (kudos for that btw).

https://github.com/derickbailey/hands-on-backbone

Also, if you started out with the non-github code, note that after getting the dependencies, you need to open up app.rb and change this:

require ‘sinatra/content_for’

to:

require ‘sinatra/content_for2’

Then you can ruby app.rb and the server should start…

  You must be logged in to comment