Displaying 20 results from an estimated 1000 matches similar to: "gnarly permission issue using fcgi"
2009 Sep 15
1
Strange error no idea -fileutils.rbThumbs.db (Errno::EACCES)
I can not find a single post on this but trying to start mongrel_rails
after closing it down I get the strangest error I have ever seen.
Nothing on Google anywhere at all - please can somebody give some
expertise?
D:\2_Rails_WWW\rails_apps\footballstars>mongrel_rails start
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
2007 Mar 28
1
attachment_fu & update_attributes... bug?
It seems that attachment_fu is a pretty popular plugin (it''s great), but
I''ve been having a terrible time trying to figure out an issue when
using "update_attributes". I''m storing files on the file system rather
than in a database.
It seems that when "update_attributes" is called with a new file,
upload_data= tries to copy a file that
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 Mar 21
4
Broken config/lighttpd.conf? (in EdgeRails)
I''m using Mac OS X, I installed Ruby/Rails/lighttpd/etc via the
instructions from hivelogic. I think I''ve found a bug with
EdgeRails, but I''m not sure how to submit it (and maybe I''m doing
something wrong and someone can just point me in the right
direction). Anyway I thought I''d report it just in case it is a bug.
I''ve downloaded
2006 Feb 13
1
hackish error handling
I''ve got a block of code that''s turning out.. well - just plain ugly.
So i know I must not be doing it the Ruby way.
The main problem I''m having is in dealing with handling errors - and
just not finding much Rails documentation that gives a deeper
understanding of how to handle errors in Rails (outside of several
docs on the catch-all''s)
the main method
2008 Jul 27
0
dhtml_calendar Plugin and dates
Man I am frustrated. 4 hours working on this and i can''t find an
answer. Here it goes.
I had some simple date select fields on a form. Then I wanted to add
some additional datetime fields on a form with a nice widget so I
installed the dhtml_calendar plugin. Now my migrations and forms don''t
work on insert stating that the argument is out of range.
Here is line #62 in the
2006 Jul 20
0
possible file upload bug in integration test
I created an integrations test that attempted to uploade a file as
follows:
def uploaded_file(path, content_type="application/octet-stream",
filename=nil)
filename ||= File.basename(path)
t = Tempfile.new(filename)
FileUtils.copy_file(path, t.path)
(class << t; self; end;).class_eval do
alias local_path path
define_method(:original_filename) {
2006 Jan 20
3
Anyone running a business hosting plan @ textdrive?
I currently run a handfull of sites on a MediaTemple VPS - which is blazing
fast and very cheap for what I get. BUT installing rails and mysql v4 was a
major pain in my ass, along with other things.
I''m considering switching to a Textdrive business hosting plan but wanted to
get some feedback from list members first.
I pay about $200 a month quarterly for my MediaTemple service.
2004 Feb 17
1
[patch] Make robust_rename() handle EXDEV.
All callers of robust_rename() call copy_file() if EXDEV is received. This
patch moves the copy_file() call into robust_rename().
Patch Summary:
-12 +1 backup.c
-15 +2 rsync.c
-9 +33 util.c
-------------- next part --------------
patchwork diff util.c
--- util.c 2004-02-17 09:58:44.000000000 -0500
+++ util.c 2004-02-17 10:21:22.000000000 -0500
@@ -355,16 +355,40 @@
2006 Oct 25
1
Capistrano, Media Temple and their Grid Servers
Hey Everyone,
According to the comments section in this blog post MediaTemple has
their own capistrano deploy script:
http://blog.vixiom.com/2006/10/12/media-temple-tames-the-beast-new-ruby-on-rails-hosting-service-with-mongrel/
The problem is that this deploy script refers to a file called
''mt-capistrano'' that I can''t find anywhere.
Does anyone have any suggestions
2009 Sep 09
0
Getting started with Rake - how do I copy a directory of assets to RAILS_ROOT + "/public"
I am just getting started with Rake. I am trying to create a rake task
from within a rails plugin to copy some asset files (inside /assets in
my plugin folder) to my rails application /public folder.
How can I achieve this?
I am not sure whether to use FileUtils or File. Where AM I in rake
terms. No matter what I do it keeps saying it can''t find the file. Do
I need to use File.join or is
2006 Jun 19
0
FileUtils/ActiveRecord help please?
Does anybody know how to make FileUtils and ActiveRecord coexist? Every
attempt I have made results in errors like those quoted below.
[belladonna-grr] ~ <0> irb
irb(main):001:0> require ''rubygems''
=> true
irb(main):002:0> require ''fileutils''
=> true
irb(main):003:0> include FileUtils
=> Object
irb(main):004:0> require_gem
2007 Oct 01
2
[ win32utils-Bugs-14360 ] Bad interaction between win32-file-stat and FileUtils
Bugs item #14360, was opened at 2007-10-01 15:00
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=14360&group_id=85
Category: win32-file-stat
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Daniel Berger (djberg96)
Assigned to: Nobody (None)
Summary: Bad interaction between win32-file-stat and FileUtils
Initial Comment:
Ruby
2007 Apr 09
2
Errno::EACCES in Controller / Permission denied
Hello,
I did a seemingly smooth install of ferret, but when I try to add it to
my model, I get an error.
My info:
My rails site: shelikes (a restaurant review site)
My controller: Display
My model: Review
My only line of code added for ferret is:
class Review < ActiveRecord::Base
acts_as_ferret
...( more stuff not related )...
end
Below is the error information. Any thoughts on how
2006 Dec 03
0
mediatemple vs. nginx
Hello, thought I''d share my experience with rails on the
mediatemple.com grid server. They offer a 64 MB mongrel container 1 TB
of bandwith and 1,000 grid processing units for $20 a month. In theory
I love it because they already have done all the load balancing work
for you. The DB is on another machine, you have access too 100s of
machines on "the grid" and just pay extra
2007 May 30
3
how to create a simple DHTML dialog
I am looking to create a simple dialog window like this on a page:
http://developer.yahoo.com/yui/examples/container/simpledialog/2.html
I know scriptaculous comes with Rails, not YUI, but I can''t find
anything similar there. Is there any shortcut to doing this with
existing plugins or core stuff?, or must I download another toolkit?
thanks
Sam
2007 Apr 03
3
MediaTemple Image upload
Hi All,
I''m hosting with MediaTemple who are currently using 0.3.3 of mongrel
on their GridServer. My rails app has an image upload facility
whereby if you upload a large image (e.g. 5Mb) mongrel crashes. I''ve
requested an upgrade to the latest version of mongrel but don''t
believe that''s going to happen too soon. I''m not getting too much
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files
I get the following:
Permission denied - D:/Temp/Merb.5172.0 or
E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg
- (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename''
C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv''
C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in
2007 Jul 06
5
503 Errors While Cluster Is Still Active
I''ve setup a new mongrel cluster on my VPS, and am noticing a lot if
503 errors if I try to hit the server too many times in succession in
a few seconds. I''ve read that this is usually caused by the cluster
crashing, but I haven''t been seen the cluster crash when I do this.
Does anyone have any other ideas what might cause this? I have my
server configured how
2011 Jul 11
0
stuck with permissions in using FileUtils
Even if I am using PaperClip & Delayed_job, I guess the issue maybe
solved by FileUtisl gurus ...
here is the case :
I am testing a delayed video format transcoding , transcoding works
perfectly but I get an issue -trying to write back the transcoded
video from a tmp directory into the PaperClip path
the original uploaded video file is stored into the :url => "/system/