-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I don't know is it my mistake or no. So i have that code:
<code>
post '/singin/get_token' do
content_type :xml
puts request.body.read
puts xmlRequest
xmlRequest = REXML::Document.new(request.body.read)
...
</code>
And when i post something like that:
<code>
<?xml…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've been banging my head against the wall for the better part of an hour trying to figure out what's going wrong here, and I'm sure (or rather hoping) it's something fairly obvious that I'm overlooking. I'm using Ruby 1.9.1, Sinatra 1.0, and RMagick 2.13.1. ImageMagick and RMagick are correctly installed…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm having a hard time getting Sinatra running on my local setup, Ubuntu Karmic 9.10. The error getting thrown when I have require 'sinatra' is:
NoMethodError: undefined method `[]' for nil:NilClass
from /usr/local/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:891:in `compile'
from /usr/local/lib/ruby/gems/1…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've done quite a bit of research on Heroku Dev Center and I am now looking to the community for help. Here is my problem. I can not push my db to Heroku Cedar Stack. I am trying to migrate a sqlite database to postgresql via Taps gem. When I am ready to deploy I run:
bundle install --without production
heroku…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm having a runtime errror when i'm looking at the "workers" tab on resque-web (localhost). Everything else works.
Edit: when this error occurs, i also have some (3 or 4) unknown workers 'not working'. I think they are responsible for the error but i don't understand how they got here
Can you help…
>>> More