similar to: Routing a Sinatra application

Displaying 20 results from an estimated 1100 matches similar to: "Routing a Sinatra application"

2010 Mar 13
1
Testing file upload (Sinatra, RSpec, Rack-Test)
Hi. I have a simple application and I want to add a file upload functionality. 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
2006 Jul 21
4
pre-alpha Rails Admin Console
Hey all, I have released some pre-alpha code for my Administrative Console which I''ve been talking about for the past few days. The admin console, autoDB, provides and AJAXed, automated scaffolding-type system that''s pretty and very customizable. More details at http://trac.visualjquery.com/admin_console/ and my original post from last week, which has screenshots and some
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 post to this group, send email to
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 end of the argument chain. I took a look at capybara
2006 Jul 19
1
Admin Console
Hello again, I''m going to be releasing the administrative console (alpha) either tomorrow or Thursday. The reason I have not yet released it is that I''m in the process of migrating the entire system to AJAX, which has uncovered a few structural issues with the code that weren''t rearing their heads in the non-AJAXed version. I still need to make a few modifications,
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 PATH_INFO must start with / (Rack::Lint::LintError)
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
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
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: C:/Tomcat60/webapps/ROOT/WEB-INF/vendor/activerecord-jdbc-
2011 Aug 12
16
Rack content-length Rack::Lint::LintErrors errors with unicorn
Has anyone seen anything like this before? I can get it to happen all the time if I issue a HEAD request, but it only happens very intermittently on GET requests. I''m using Ruby 1.9.2p180. Any ideas on where to start debugging? 204.93.223.151, 10.195.114.81 - - [11/Aug/2011 21:03:50] "GET / HTTP/1.0" 200 37902 0.5316 app error: Content-Length header was 37902, but should be
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
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
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[name]" >
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''] = %(Basic
2011 Apr 08
7
FileUpload without Tempfile
I am looking for a way to upload a file to Rails 3 app, but without generating a temp file. Googling the issue gave me some insight in how the file upload works. 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
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
2011 Oct 11
3
Want to implement APIs in Rails.
Hi, I want to write APIs for my rails 3.1 application but have never written an API ever. I am supposed to write REST and SOAP APIs. Is there a formal book or e-book or screencasts or tutorials which teaches about APIs in Rails and best practices? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
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/.
2007 Feb 10
3
recognize_path discrepency
hey all - wondering if someone would relive my confusion... given a model called say Meeting and a route as "map.resources :meetings" in the console: >>r=ActionController::Routing::Routes >>r.recognize_paths "/meetings" =>{:action="index",:controller=>"meetings"} all works as I expect, but if I do >>r.recognize_paths
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