.each working through IRB but not through ruby script/framework(Sinatra)
Reported by fsalgo | June 4th, 2008 @ 12:42 AM | in 1.x
I am using Sinatra framework v.0.2.3 and my code goes like this
require 'rubygems'
gem 'dm-core'
require 'data_mapper'
get '/users' do
guests = Guest.all
guests.each { |g| puts g.inspect }
end
When executed I get stack trace that looks like http://pastie.caboo.se/208431
DM synced with edge
Ruby 1.8.6
Comments and changes to this ticket
-
Dan Kubb June 9th, 2008 @ 08:19 PM
- → Milestone changed from to 1.x
- → State changed from new to open
fsalgo, can you retest this and let me know if it's still an issue? I made some changes to Collection that may have resolved this but I don't have Sinatra installed to test it with.
-
Dan Kubb June 23rd, 2008 @ 07:24 PM
- → State changed from open to invalid
Marking this ticket as invalid due to no response from reporter in almost 2 weeks.
fsalgo, if this is still a problem please reply and I'll reopen this ticket.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
