similar to: Curious about new (ActiveRecord::Base)

Displaying 20 results from an estimated 5000 matches similar to: "Curious about new (ActiveRecord::Base)"

2012 Jul 18
0
Zipping files contained in a dir (rubyzip)
hey so I''m trying to zip all the files contained in a directory (RubyZip). heres what I have: def bundle #create the ZIPfile with the title of (:id).zip bundle_filename = "public/attachments/#{self.id}/#{self.id}.zip" #open the ZIPfile in order to add items in Zip::ZipFile.open(bundle_filename, Zip::ZipFile::CREATE) { |zipfile|
2006 Jun 13
2
One model handling two different file types
Hi. I''ve gotten stuck again, this time at having one model handling 2 different file types. My model, Logfile has fields id and filename. It also has a file= method to handle an uploaded test file. What I want is to be able to upload either a text file or zipfile. The zipfile contains text files, and I''d like to save each text file within this zipfile as a Logfile. Is
2010 Jan 19
5
Rubyzip gem installed but not recognised
Hi, I have installed rubyzip successfully(see output below) Successfully installed rubyzip-0.9.1 1 gem installed Installing ri documentation for rubyzip-0.9.1... Installing RDoc documentation for rubyzip-0.9.1... if I put config.gem ''rubyzip'' in environment.rb and then run rails it fails to load rubyzip .. see below george@geolaptop:~/Dropbox/git/paua$ ruby script/server =>
2003 Oct 09
1
subsetting objects
I want to be able to exctract a matrix from a data frame that contains repeated measurements for individuals. i.e I want to exctract the second observation for each individual in the study. Is there a way of doing this? I guess what I am trying to ask is if there as a multidimensional version of aggregate() as in aggregate(data, list(data[,"ID"]), function(x) x[2,]) but aggregate will
2006 Aug 09
0
Rails security update
I see there is a mandatory security update out for rails today (http://tinyurl.com/lvqjs), but I cannot get it to install on XP. Anyone having a similar experience? C:\ruby\bin>gem install rubyzip Attempting local installation of ''rubyzip'' Local gem file not found: rubyzip*.gem Attempting remote installation of ''rubyzip'' Successfully installed rubyzip-0.9.1
2006 Mar 17
0
Installed Gems on godaddy.com
Hi, is there a core list of gems that one needs to install in a production environment? Anyways, here''s a current list of installed gems on godaddy.com: Gems *actionmailer 1.0.1* [www] <http://www.rubyonrails.org/> - depends on actionpack <http://www.situationman.com/_h_admin_/gems.html#actionpack>. Service layer for easy email delivery and testing. *actionmailer 1.1.5*
2010 Oct 27
0
RubyZip Exceptions
Hi, I am wondering if there is a way of catching exceptions that are thrown within rubyzip.rb. For example: in rubyzip line 583, private def set_time(binaryDosDate, binaryDosTime) @time = Time.parse_binary_dos_format(binaryDosDate, binaryDosTime) rescue ArgumentError puts "Invalid date/time in zip entry" end I need to be able to ''catch'' the
2011 Sep 21
4
rubyzip with Ruby 1.9.2 and Rails 3.1 - require 'zip/zip' fails
I''m trying to move my application from Rails 2.3.5 to Rails 3.1 which is a challenge. In my application, require ''zip/zip'' fails with ''no such file to load -- zip/zip gem list --local shows rubyzip (0.9.4) I see zip.rb in d:\ruby192\lib\ruby\gems\1.9.1\gems\rubyzip-0.9.4\lib\zip\ -- Posted via http://www.ruby-forum.com/. -- You received this message
2010 Sep 03
1
Error message
I just installed Wine into Ubuntu 10.4, from Ubuntu's Software Center (the installation instructions at WineHQ didn't work). I've tried installing a couple of Windows programs from CD (a set of clip art images from Nova Development Corp, and Willmaker Plus from Intuit). Every executable I've tried generates the following standard error message: Archive:
2009 Sep 12
1
My WINE won't go to work
I still can't seem to figure out Wine and how it works. I tried again to get Brainfuse Quick Connect working last night and had the notion that perhaps I need to get Explorer up and running. I've tried everything I know to get that file in Other to run but nothing is happening. I did get a lengthy error message. [/home/ken/.wine/dosdevices/c:/windows/explorer.exe]
2011 May 29
3
Re: error while installing orcad
I get this message when i try to launch the setup of OrCAD version 10.0. I have wive version 1.2. [quote]Archive: /media/5CFC92BDFC9290BE/Documents and Settings/Bhuved/Desktop/ORCAD_10 (D)/ORCAD_10 (D)/Setup.exe [/media/5CFC92BDFC9290BE/Documents and Settings/Bhuved/Desktop/ORCAD_10 (D)/ORCAD_10 (D)/Setup.exe] End-of-central-directory signature not found. Either this file is not a zipfile,
2009 Mar 23
5
Wine fails to install Adobe PS
I have tried a few rtimes now to install Abobe PS7 (not a crack) on the latest Linux Mint and now on Ubuntu 8.10 64bit. I am having the same problem in both. Is it because my new comp is a 64bit? An error occurred while loading the archive. [/media/cdrom0/Autoplay.exe] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part
2010 Mar 13
3
How can I access a ZIP file that's over 2Gb?
I have a zip file. It is over 2Gb in size: -rw-r--r-- 1 sweh sweh 2383956582 Mar 13 13:44 test.zip The standard "unzip" program barfs: % unzip -l test.zip Archive: test.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment
2009 Aug 27
5
wine does n't open
Hai Friends, I was using wine happily with ubuntu 8.04. Now I have ubuntu 9.04 clean install on a new machine. I could install wine but when I open wine-program-accessories-notepad nothing happens. Also configure wine does n't funtion. Also when I try to install any exe file this message comes: here is one example [/home/illusions/Desktop/TeamViewer_Setup.exe] End-of-central-directory
2009 Apr 12
3
Hi, complete ubuntu 8.10 novice needs help with wine
hi i've been trying to get an old game (Dune 2) which i used to play through DOS to work on Linux systems, i've not used this before and am in need of an 'idiot's guide to Linux' i've gotten as far as having unpacked the file and installed it on terminal, it now to the point of running the Setup.exe however when i try to run the setup, i get the following command line
2009 Sep 01
4
Loading iTunes
I am informed that it is possible to load iTunes in Wine using Ubuntu 9.04 but am experiencing problems. In Ubuntu I downloaded the Wine package via Synaptic which duly displayed in my applications menu. Having achieved that I then loaded iTunes the version for XP and Vista. When I attempt to open the iTunes it is then that I hit problems. The iTunes .exe file is now on my desktop. On opening
2006 Apr 13
0
Making @headers[''Refresh''] and send_file work together?
I''ve got a Rails 1.1 app where people can click a link to download a custom-generated file. The link to "Download Zip" goes to / controller/get_zip. That action looks like this: def get_zip @cart = find_cart ids = Array.new @cart.songs.each do |song| ids.push song.id end args = ids.join(" ") zipfile =
2010 Dec 15
1
Installing iTunes on Linux Mint Isadora 9
I am new to Linux but have been trying to follow various suggestions on installing iTunes on Isadora 9. I downloaded iTunesSetup72.exe but when I double-click on it I get the following message: The file '/home/italianvino/Desktop/iTunesSetup72.exe' is not marked as executable. If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details, read
2009 Feb 27
2
Smth. about "Icon=" option in .desktop files created by WINE
When I install some Win32 application using WINE, it creates associated menu item file for it, located at ~/.local/share/applications/wine/Programs/***Program title***/***Program shortcut.desktop***. Well, inside this file I see option named "Icon", where path to some icon is set. Sometimes this path points to some PNG image file, but sometimes it points to something I don't have a
2011 Feb 19
2
Can't get wine to run any programs: included error message.
Okay I just installed the latest ver of Ubuntu and then installed the beta ver of Wine because the non-beta told me that it wouldn't install on AMD x 64 type computers. So I just installed the beta Wine version and I can't get any programs to run at all using wine. I also am having many pages on this forum stalling out, so i tried to read the user manual but i am not able to load it.