similar to: FileUtils/ActiveRecord help please?

Displaying 20 results from an estimated 1000 matches similar to: "FileUtils/ActiveRecord help please?"

2006 Apr 26
5
accessing created_on causes type error
I assume that this is some newbie stupidity, but I haven''t found my way around this problem. I have an ActiveRecord object fetched from the database, and I need to evaluate the contents of the updated_on field. However, *any* attempt to access that data in the program results in a TypeError with the message ''no implicit conversion from nil to integer''. cust =
2007 Feb 08
0
ActionController::RoutingError in actionpack-1.13.2
The specific error is: ActionController::RoutingError (no route found to match "/application/setservice" with {:method=>:post}) With actionpack-1.12.5 the default route handled /application/setservice. I have found a workaround by adding the route map.connect ''application/setservice'', :controller=>''application'',
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 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
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/
2005 Nov 22
1
Ferret NoMethodError
Using the current ferret gem (on Win-XP): irb(main):001:0> require ''ferret'' c:/ruby/lib/ruby/1.8/fileutils.rb:950: warning: already initialized constant OPT_TABLE => true irb(main):002:0> include Ferret => Object irb(main):003:0> index = Index::Index.new => #<Ferret::Index::Index:0x3477ba8 @qp=nil, ...> irb(main):004:0> index << "This is
2005 Jul 18
0
CESA-2005:470-04: Low CentOS 2 i386 fileutils bug fix update
The following errata for CentOS-2 have been built and uploaded to the centos mirror: RHBA-2005:470-04 fileutils bug fix update Files available: fileutils-4.1-10.9.i386.rpm More details are available from the RedHat web site at https://rhn.redhat.com/errata/rh21as-errata.html The easy way to make sure you are up to date with all the latest patches is to run: # yum update -- John Newbigin
2014 Jan 19
0
gem install fileutils error
Hello Guys I'm new in Ruby so I'm now trying to install fileutils by using the command [ gem install fileutils ] note: I'm using windows 7 :( always when i trying to install it i got this error C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5... yes checking for stdint.h... *** extconf.rb failed *** Could not create Makefile due to some
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
Hi all, I''m needing to extend the Paperclip Storage module to handle external URL''s so that I can upload my doc''s/images to an external source rather than the app''s local file system. The FileSystem module reads module Filesystem def self.extended base end def exists?(style = default_style) if original_filename
2006 Jun 14
2
Simple FileUtils question
Hi, I have a quick question. I am trying to create folders dinamically using FileUtils.mkdir, the problem is that if the folder already exist it gives me an error. Does anyone know if there are any options to mkdir that would let me overwrite the already existing directory? I just need to create a folder with the same name everytime. Any other solution you might suggest? Thanks. -- Posted
2006 Jan 27
0
FileUtils copy not working when invoked by webserver
I have image manipulation routines in one of my controllers, and in an attempt to "undo" bad image edits, I want to copy the original image file over the "working" image file. FileUtils::Verbose.cp(@registrant.image(''original''), @registrant.image) Works great when invoked with a valid @registrant object in script/console, but it does not work when invoked on
2005 Aug 10
1
fileutil & tar utility RPMs on RHAS3.0
Hi, Please advice how to download utility for 'tar', 'cp' supporting RHAS3.0 RPMs listed in note 237997.1 are used for RHAS2.1 * Patch 2883583: fileutils-4.1-4.2.i386.rpm * Patch 2913284: tar-1.13.25-9.i386.rpm Best regards, Huy. == Nguyen Quang Huy Sr. Technical Sales Consultant Oracle Vietnam 53 Quang Trung St, Hanoi Email: quang.huy.nguyen@oracle.com Phone: +84 4 943 2595
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
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
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
2018 May 03
2
Getting --delete to work, simply
rsync version 3.1.2 protocol version 31 I've run into an issue using rsync on my QNAP NAS. I've installed Entware-ng on the NAS so that I can install better versions of programs, rsync being one of them. But, I've run into an issue wqith using the --delete option, as it has problems using wildcards. Initially a backup script looked like: #!/bin/sh for d in
2007 Jun 18
2
"No such file or directory - script" Error on Model.rebuild
Hi, Having recently converted to using ferret_server on my staging site my deployment is now failing due to the following error when attempting to rebuild the indexes on my models: from (irb):1>> Post.rebuild_index Errno::ENOENT: No such file or directory - script from (druby://127.2.0.1:9100) /usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir'' from (druby://127.2.0.1:9100)
2018 May 03
1
Getting --delete to work, simply
On Thu, May 03, 2018 at 02:59:11PM -0400, Kevin Korb via rsync wrote: > Note that these are working because S* and s* are being applied to all > the dirs and files within dirs. So if you had x/Something it wouldn't > get copied and if you had S/else it wouldn't get copied. Maybe you want > to add --prune-empty-dirs and an --include='*/' so that rsync will look >
2006 Jun 05
1
file_column permissions
this is getting frustrating... i installed file_column without a hitch for the first time to just play around with. using the exact same steps as before, i try to use it with one of my actual applications, and i get "permission denied" errors. i figure there might be some conflict with my application so just for kicks i do the exact same thing i did the first time to test
2011 Jan 13
1
10.04 Ubuntu
Hi, Chauk-Mean and all - I have just ported everything to 10.04 ubuntu, and I am pleased to note that I was able to use prepackaged stuff almost everywhere. Yes, it was painful before I figured it out. :) I used apt-get to install ruby-1.8.7, all the wx libraries (including the dev header packages) I uninstalled the debian rubygems package completely and installed rubygems-1.4.1 from the