search for: sinatra

Displaying 20 results from an estimated 89 matches for "sinatra".

2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
Have created sample sinatra cucumber app as suggested on wiki. Tried both env.rb configurations from there and aslaks git repo. With this combination of gems I get the following error doing basic cuc tests When I visit ''/foo'' # features/step_definitions/general.rb:1...
2010 Apr 23
2
Routing a Sinatra application
Hello, I wish to route a sinatra application in my Rails 3 app. As said by Yehuda, it should be possible. http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/ However I see the route isn''t recognized and I get ActionController::RoutingError problems. It works well with simple rack apps however (the test in act...
2012 Aug 31
1
after_fork - ActiveRecord::AdapterNotSpecified
Hi all, I''m fighting with the after_fork hook and my sinatra application. The Sinatra app is using active_record, In my unciron.rb file I''m using preload_app true after_fork do |server, worker| ? defined?(ActiveRecord::Base) and ??? ActiveRecord::Base.establish_connection End but I always get the error: ERROR -- : ActiveRecord::AdapterNotSpecified...
2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
...unctionality. How can I write a spec? Here''s my try. # directory structure app: - controller.rb - controller.spec.rb - files: [] - fixtures: [test_file.png] # controller.spec.rb require ''rack/test'' require ''controller'' module MyHelpers def app Sinatra::Application end end Spec::Runner.configure do |conf| conf.include Rack::Test::Methods conf.include MyHelpers end describe ''Application'' do it ''should accept uploaded files and save them into the `files` directory'' post ''/'', ''fi...
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on Windows. It seems to work ok, but when I try to add selenium to webrat. I get the error shown below. It seems like it thinks it is in a linux environment or something as the error happens when it tries to start selenium server and there is a "&" at the en...
2013 Feb 21
1
Is possible to use Sinatra with Rails????
Hey guys, Do you have any idea how to implement Sinatra with Rails ????? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To...
2011 Nov 28
0
Software Developer (Ruby, Rails, Sinatra), Full Time Position, Phoenix, AZ
Good day! I wanted to reach out to you about a full time job opportunity. This is a Software Developer (Ruby, Rails, Sinatra) position located in Phoenix, AZ. Below are the details of the job. If you believe that you are a good fit for this position, apply now or if you have someone else in mind who would suit the requirement please pass this email along. We do have referral bonus for most of our positions*. Location:...
2012 Apr 13
0
console for JRuby/Sinatra with Tomcat ?
We are using Ruby Sinatra running on JRuby with tomcat as a server. I saw where it was claimed you could get a console in Sinatra by doing something like this: irb -r my_sinatra_app.rb for me that would be jruby -S rb my_sinatra_app.rb but I get this error when I do that as obviously tomcat must initialize some things:...
2013 Mar 04
1
sinatra server side file upload with progress bar ?
I am using this jquery file upload plugin. In firefox it has progress bars, but these don''t work in IE. We are using Sinatra/JRuby/tomcat This is the plugin: https://github.com/blueimp/jQuery-File-Upload I believe the progress bars don''t work in IE, because IE doesn''t support that in ajax until version 10 and we have to support version 9. This page summarizes that: http://caniuse.com/xhr2 The p...
2011 Jan 06
0
issue with the attachment_fu on sinatra with rails 3
Hello experts, As I''ve posted in my previous post that problem with attachement_fu on sinatra http://www.ruby-forum.com/topic/814969#972738 I need to upload an image from my local computer to a web server and store the location in a database using attachment_fu plugin Any ideas on how to get this to work? -Ganesh K -- Posted via http://www.ruby-forum.com/. -- You received this mess...
2011 Apr 08
7
FileUpload without Tempfile
...s. As I understand Rails creates a temp file when the file size is larger than 20kb. Is there a way to change this limit and avoid the temp file generation? Another solution I was looking in was creating a Rack App and so avoid the file generation, however, didn''t work either. Same with a Sinatra app. Btw. yes it is mandatory that the file is not saved and only kept in memory for security reasons. Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3...
2010 Jun 09
4
rails+sinatra sent image
Hi! I have simple rails application - users with name and avatar and in sinatra I want to create new user. form for new user <form action="/users/create" enctype="multipart/form-data" method="post"> <p> <label for="name">Name: </label> <input type="text" id="name" name="user...
2009 Aug 05
5
Logging out with Rake:Auth:Basic
Hi all, I''m writting a small app that requires basic authentication in Sinatra. I followed the advice of the official Sinatra faq (http://www.sinatrarb.com/faq.html#auth) and have implemented this code with success: [code] require ''rubygems'' require ''sinatra'' helpers do def protected! response[''WWW-Authenticate'']...
2010 Mar 10
0
How to test helpers in a Sinatra app?
I am using rspec and trying to test some helpers, but for some reason can''t get rspec to read my methods in my helpers.rb file. I include the helpers file in the helpers spec...in the spec I run a test with a method from my helpers file and I get an error saying: undefined method for my_method Any ideas suggestions, that''d be great. -- Posted via http://www.ruby-forum.com/.
2010 Nov 19
1
Performance issue with Thin
It''s not about scalability on a huge site, but the lowest possible latency for a very small app. I have a little app with Thin and Sinatra. My app generates the page in about 50ms. After getting the browser request, thin waits 50ms and then it takes 300ms sending the page, to Chromium at localhost. (It takes 300ms to send a static a.html with the word "test" on it, too, so it seems to be a lower bound on my machine) Why is...
2018 Sep 29
8
email Server for CentOS 7
Hi folks. I?m looking for an email server. I have a C7 box already with nginx, PostgreSQL, Sinatra and Ruby. So I don?t want to install PHP, Apache, MySQL, etc. Are there any ways/tutorials to set up a mail server under those restrictions? It would serve multiple domains. Cheers, Bee
2013 Mar 15
2
Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
...will arrive as a string. Is there another way to begin Icalendar''s Parse than with a file? I''m currently sending the file using the curl command... curl -v --data-urlencode ics at invite.ics http://127.0.0.1:4567/ics2event I''ve tried curl''s --data-binary and sinatra''s request.body.string to create the stringio object, without luck. Ultimately it complains NoMethodError at /ics2event undefined method `bytesize'' for #<Icalendar::Calendar:0x9c8b1b8> file: component.rb location: method_missing line: 419 My web code is below. require ...
2012 Mar 06
1
Issue with pe-dashboard-workers
...the rake db:migrate command and got the following message: DEPRECATION WARNING: Rake tasks in vendor/plugins/delayed_job/tasks are deprecated. Use lib/tasks instead. (called from /opt/puppet/share/ puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:10) rake aborted! no such file to load -- sinatra/base Since I couldn''t figure out how to get sinatra/base loaded (perhaps that''s a solution), I went back and worked on setting the environment variable with the export NO_MIGRATION_CHECK=1 command. I then tried restarting the pe-puppet-dashboard-workers script, and seemed to get...
2013 Feb 06
1
Problem using ast_tls_cert script
Hi List, I'm trying to set my Asterisk 1.8.20.1 with TLS on CentOS 5.9, it was easy and straightforward with Debian 6.0.6, but when I introduce this command on CentOS: #./ast_tls_cert -C 10.200.108.17 -O "MyCompany" -d /etc/asterisk/keys/ I got this error message: hostname: Unknown host Same result happens when using server's hostname: #./ast_tls_cert -C ast-centos -O
2010 Jul 02
3
Ticket #5038 ActiveResource not handling updates correctly
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5038-activeresource-not-handling-updates-correctly I just added this ticket. I''m writing a Sinatra API to be consumed by Rails and I''ve run into an issue where the ActiveResource documentation specifies that on update you should return an HTTP 204 status with no body. The problem is that Rack doesn''t allow you to set the Content-Length header of HTTP 204 responses. The workar...