similar to: File Column Directory Add another layer

Displaying 20 results from an estimated 200 matches similar to: "File Column Directory Add another layer"

2006 Jan 09
7
File_column Dynamic directory
I asked this question earlier and did recieve an answer but I am not sure Ifully understood the answer as I am getting all sorts of errors when trying to implement. Basically I want to add a layer to the path for my files. I have the following set up in my model class: file_column :image, :store_dir => :dynamic_dir def dynamic_dir
2006 Feb 26
1
Ruby on Rails and Fedora Core 4
I have noticed a couple of weird things going on with our code and it running completely different (causing errors where they weren''t before) between our dev environment and a new staging environment that we are setting up. My dev environment is a PowerBook running everything current except for edge rails. Our staging envronment is Fedora Core 4 Ruby 1.8.4 installed via yum
2023 Mar 10
1
[V2V PATCH v3 6/6] tests: add --block-driver option test
The test checks that the newly introduced --block-driver option doesn't break conversion. Basically its logic somewhat repeats test-v2v-i-disk.sh and test-v2v-in-place.sh, but with the new option being set. The checks it performs are: 1. Run disk-sourced conversion (-i disk) based on the phony windows.img and check that it completes (i.e. produces converted disk and corresponding
2006 Jul 17
6
3 newbie questions
hey all, I have 3 tables like this: Images (id,name) Tags (id,name) ImagesTags(imageid,tagid) in my image model I do a "has_and_belongs_to_many :tags" but to make it work I need to rename ImagesTags(imageid,tagid) to Images_Tags(image_id,tag_id). My question is that given that I can''t rename the table, is there any way to make it work with the original names? Second question:
2006 Mar 16
2
Questions about file_column plugin
Hi! I''ve got 2 models - let''s call them User and Image. User has_many images. (Thanks to Mark Reginal James :) ) I have a single form where i can create a user and add to him any number of images, which are uploaded using file_column plugin. Now 3 questions: 1. How to change the default path where file_column plugin saves images, so it will save them in a directory, which
2015 Oct 20
5
[PATCH v4 0/3] v2v: add --in-place mode
This series is an attempt to add a mode of virt-v2v operation where it leaves the config and disk image conversion, rollback on errors, registering with the destination hypervisor, etc. to a third-party toolset, and performs only tuning of the guest OS to run in the KVM-based hypervisor. Roman Kagan (3): v2v: add --in-place mode v2v: document --in-place v2v: add test for --in-place ---
2006 Jan 10
3
Getting a user from a model (sort of a noob) (resend sorry)
Sorry for the resend but I am not sure if the first one ever made the list. As mentioned in my previous posts I''m trying to create a dynamic directory for file_folumn. After finding out that I didn''t have the most recent version I installed the latest trunk and am able to get file_column to act as it should. However I have been racking my brain on how to implement
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
I am looking at adding the Sentry plugin to one of the applications that we are working on. I have a need to store some info that will have to be encrypted and decrypted. I have been going through the docs for the plugin and the AsymetricSentry class looks like the best for what we need to do but I am not sure how to generate the key. The docs say: This is a shortcut for using an
2006 Mar 28
3
ListItem patches
Hi Attached, patches to implement ListItem. This class, in wxruby 0.6.0, allows styling of individual items in a ListCtrl, via a particularly clunky API. In disambiguating the overloaded ListCtrl#set_item method it introduces one non backwards-compatible change. I''ve followed the WxPython convention as described in the Wx class ref, renaming set_item(index, col, string, imageid) to
2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2023 Mar 10
7
[V2V PATCH v3 0/6] Bring support for virtio-scsi back to Windows
Discussion on v2: https://listman.redhat.com/archives/libguestfs/2023-March/030987.html v2 -> v3: * Patch 2/6 ("convert_windows: add Inject_virtio_win.Virtio_SCSI as a possible block type"): omit "Inject_virtio_win." prefix in favor of type inference. Add a short commit message body; * Add tests/test-v2v-block-driver.sh testing the new "--block-driver"
2006 Apr 12
3
Capistrano Issues
Well I finnally bit the bullet and upgrade to capistrano and have run into several issues that I can''t seem to find a fix for. Switchtower worked perfectly but I can not get cap to work especially with the change to the command to run a deploy. The following code worked fine in switchtower to deploy: switchtower -vvvv -S stage=stage -r config/deploy -a deploy The stage variable
2016 Mar 18
9
[PATCH 0/7] Small portability changes
Assorted collection of small improvements in making libguestfs build on non-Linux OSes; most of the changes impact tests though. Thanks, Pino Toscano (7): build: check the path of fuser, and use it in FUSE code tests: move guestfs-md5.sh to test-data v2v: tests: isolate SHA1 calculation in an own shared function v2v: tests: use guestfs-hashsums.sh for MD5 php: pass $(MAKE) to
2006 Feb 08
5
Regular Expression Question
I have looked through the Ruby Pickaxe book as well as done a search but can''t figure out how to validate the format of a field. The field I want to validate is a credit card expiration date field. Based on our user study (going around the office and asking everyone the way they like to fill out that particular field type) everyone prefers the following format in one field:
2006 Jan 12
4
If statement based on a action
Question for you all is it possible to use an action in an if statement? I am using the same form for edit and new and I have a cancel button on the page. This cancel button is built with an if statement that looks right now to see if a parameter exists to define where to go back to if the user cancel. The problem occurs when the user submits the form and there are missing fields by
2006 Feb 26
28
A Follow up to my fedora question: Favorite Flavor Of Linux?
Than my question is this? Now that I have switchtowerized and migrate enabled my app I can start down a new path if need be on a different OS as the base of the system. We have already tried CentOS and found it to have more issues than those mentioned about fedora and through it away faster than one could shake a stick at. Here are our requirements for a stage/dev box and production:
2006 Aug 09
1
Problem install rails via gem
I am getting the following errors when trying to install a new copy of rails: gem install rails --include-dependencies Attempting local installation of ''rails'' ERROR: Error installing gem rails[.gem]: No metadata found! it seems to not be going out to the repository but I was able to update rake via gem update rake. I am running Ruby 1.8.4 on centos Is it just me or is
2006 Feb 17
1
Session Data Question
I am still to new to rails to feel comfortable diving into the source for the framework however my comfort is getting better. My question is this. We are storing the session data in the database using active_record_store. I was looking at the table to just get a better idea of what is going on as far as how the data is stored. I am a bit curious as to the session.data field. What method
2006 Feb 24
1
New Environment?
Hello all, I was wondering if it is possible to create a new environment? IE I want a fourth environment set called Stage. The reason being is that we want to run a staging server of sorts. This server will run a copy of our app that is rebuilt via switchtower every hour. We don''t want it to run in as test we want it to run as a production environment but some of our classes
2006 Jan 04
1
Localize validate_error messages
I am in the process of adding localized language support to my app and I am currently using the various validate methods on fields. How would i go about editing the following text based on a users choosen language: 3 errors prohibited this podcast from being saved basically I am looking to make the generated flash[:errors] text from rails multilingual. Thanks Andrew --------------