similar to: FileUpload without Tempfile

Displaying 20 results from an estimated 5000 matches similar to: "FileUpload without Tempfile"

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
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)
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 actionpack with a lambda passes well). I''ve written a test
2012 Jan 14
2
Two log entries for every request
These are lines from a local dev log. Notice the two identical (except for time taken) entries for the requests. Every request has two entries with the 2nd entry taking longer. This is a dev environment so the .css is referenced. On the server this same app is doing the same thing. Any ideas? Is it bug in my code? I, [2012-01-14T10:54:09.089535 #34573] INFO -- : listening on addr=0.0.0.0:8080
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
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
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 28
5
mysql quotation wonky
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run this: SELECT "schema_migrations"."version" FROM "schema_migrations" vs this ? SELECT `schema_migrations`.`version` FROM `schema_migrations` __ rake db:migrate output __ rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
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
2007 Mar 22
2
Problem with fileupload on SMB share
Hello, i have got a serious problem with fileuploads on SMB shares. Iam implementing a program that watches a folder for new file and show status e.g. incoming, growing, complete. With FTP and simply copying from another folder on the same box there is no problem. But if i use smb to copy a file to that folder, from the first moment to full filesize is displayed. In this case all my functions
2007 Nov 23
0
fileupload via ftp and attachment_fu
How can I use attachment_fu to store files in a MySQL database (db_file) which I uploaded via ftp in a special directory? I need to upload files - large images 25-40 MB -, so my intention ist to upload them via ftp and then use attachment_fu to strore them in a MySQL database. I had problems in uploading such files via a form - timeouts. I need them in a database because we have a very
2010 Jan 05
6
thin server claims I don't have correct rails gem installed
Hi everyone, I need some insight into a problem I just started having. I''m running ruby 1.8.6 on an ubuntu box with the following gems installed: $ sudo gem list --local *** LOCAL GEMS *** actionmailer (2.3.5, 2.3.4, 2.3.2, 2.2.2) actionpack (2.3.5, 2.3.4, 2.3.2, 2.2.2) activerecord (2.3.5, 2.3.4, 2.3.2, 2.2.2) activeresource (2.3.5, 2.3.4, 2.3.2, 2.2.2) activesupport (2.3.5, 2.3.4,
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
2009 Feb 11
16
Unicorn: UNIX+localhost/LAN-only Mongrel fork
Hello all, Last week, I finally decided to put into motion some ideas I''ve been kicking around for a year in my head since last year... Basically I don''t want to have to deal with threads or support platforms that rely on or encourage threads. Especially given MRI 1.9 where kernel threads are more difficult to debug than green ones. Given the limited scope of this project,
2011 Apr 01
10
"rm public/index.html not recognized...."
I typed, "rm public/index.html" Got back, "''rm is not recognized as an internal or external command, operable program or batch file." Bruce -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To
2010 Oct 15
3
Ruby as a web client
Hello, I need to write a program that will talk http to some web applications. I was thinking to use Rack. I am not sure what would be a good way to do this. Is there a better or higher level gem that I can use for this. Thanks in advance! Alex -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2013 Nov 12
7
Hook into Exception Chain
Hi there, I''m using Log4r in my rails projects. On log.error an email is sent using the EmailOutputter. I know changed the EmailOutputter to include a global var in the subject (MDC) since the subject is normally static. I want to set this var to the exception message, so it is sent as the subject. Can anyone tell me how to do this in rails? Basically: raise e or some other cause
2011 Nov 22
7
rake aborted with ruby on rails
when i run * rake db:create* * * WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/vishnu/.rvm/gems/ruby-1.8.7-p352-D9TI4Ms3gBgeRYYz77F+sQ@public.gmane.org/gems/rake-0.9.2.2/lib/rake/rdoctask.rb DEPRECATION WARNING: Rake tasks in
2013 Nov 05
4
Handling closed clients
We have a service that clients use to upload files. We have a couple of clients that are on slow links and so their upload times out. We get errors in the logs that I''d like to get rid of. I was hoping that the recent commit 24b9f66dcdda44378b4053645333ce9ce336b413 would help us, but it does not. After digging in a bit, I have some ideas about why and a patch I''d like comments
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Default to mktemp, not tempfile
Commit-ID: b0626ba1febdb535a674743070dfc3f3c5735b29 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=b0626ba1febdb535a674743070dfc3f3c5735b29 Author: Andrej Shadura <andrew.shadura at collabora.co.uk> AuthorDate: Fri, 7 Sep 2018 10:34:11 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: builtin: