11 Aug 2012, 22:12
Generic-user-small

blaine wishart (2 posts)

First, I’m impressed with the quality of the presentation.

I can launch simple Sinatra apps, including the apps used in the Pragprog Sinatra webcasts. However > ruby app.rb returns:

/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require’: no such file to load—sinatra/content_for (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require’ from app.rb:3

I’ve received similar error running under ruby 1.9. Clue?

13 Aug 2012, 02:00
Generic-user-small

rob walsh (1 post)

I’m a total noob but worked for me was this:

https://github.com/sinatra/sinatra-contrib

15 Aug 2012, 16:08
Generic-user-small

Juanma Cervera (1 post)

I met the solution updating the gems used in the project.
First I updated the Gemfile file and changed the line: gem ‘sinatra-content-for’
for this one: gem ‘sinatra-contrib’

And then I run “bundle update”
for updating all the gems used in the project.

16 Aug 2012, 19:53
Medium headshot 3_pragsmall

DerickBailey (8 posts)

looks like i need to update the gemfile with this. i’ll get that done as soon as i can. the updated code will be posted on my github repo: https://github.com/derickbailey/hands-on-backbone

  You must be logged in to comment