Displaying 20 results from an estimated 1000 matches similar to: "Testing file upload (Sinatra, RSpec, Rack-Test)"
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
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
2006 May 31
3
Cannot delete files from samba share
Hi all,
Following an upgrade from samba 2.2.8a to 3.0.22 we have been unable to
delete files on a samba share using an XP client. We were previously able
to delete these files when using 2.2.8a.
The problem occurs when we have a particular sub-set of permissions.
Directory permissions on UNIX are set to 775 and ownerhips to usera :
group1. This should mean that either usera or anyone who
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
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)
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 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-
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]" >
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
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 Sep 16
2
[LLVMdev] How to duplicate a function?
Hi all,
Sorry for the inconvenient about the previous post. The files were not
attached. So I put them here again.
I am a newbie in LLVM and I am trying to replace the function like:
old function || new function
==============================
=========
int haha(int a) { int haha(int a, char* ID) {
===>
}
2011 Jun 14
3
Read in from multiple Excel wksheets
I?ve got an Excel workbook with about 30 worksheets. Each worksheet
has 10000 rows of data over 30 columns.
I?d like to read the data from each worksheet into a dataframe or
matrix in R for processing. Normally, I use read.csv when interacting
with Excel but I?d rather manipulate a multisheet workbook directly
than set about splitting the original workbook and saving down each
part as a csv.
2005 Feb 17
1
REPOST: smbcacls question
Since I never received a reply, I am reposting this earlier post:
I am trying to run the following command and keep getting the same
error. My question is is there a problem with my command or is this
possibly an issue with Samba
smbcacls -d test_file -A ACL:DOMAIN\username:ALLOWED/0/CHANGE -U username
Here is the error:
debug_parse_params: unrecognized debug class name or format [test_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
2007 Jan 30
1
Cannot preserve uids and gids with AIX 5.3 w/rsync 2.6.2
First, yes, I have read the piece on chroot....
Trying to get an AIX (5.3) to run rsync 2.6.2 as a daemon
I have tried every possibly usage to stop chroot, used no and false, as
on the web it has showed up as either.
Also dropped flag --numeric-ids when running....
Here is my test config---
# Simple test config file
log file = /tmp/rsync.log
[test]
use chroot = no
path = /tmp/rsync_test/
2013 Mar 15
2
Icalendar.Parse(StringIO.new(aString)) complains about missing method, bytesize
I need to send an ics file to a web service, so however it gets there it
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
2008 May 16
2
shell script strangeness...
On my CentOS 4.6 server, this works...
if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ]
On my CentOS 5.1 server, this gives me the following error...
./test_file.scr: line 3: [: too many arguments
Can anyone explain why the difference and suggest something that makes
both cases happy?
Thanks
Craig
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