similar to: file_column issues on dreamhost

Displaying 20 results from an estimated 1000 matches similar to: "file_column issues on dreamhost"

2006 Jan 17
0
file_column with both root_path and store_dir
I store my file_column database outside of my RAILS_ROOT. It seems to work in real life, but not in tests. In the tests, I can''t set both the root_path and the store_dir. In tests, setting the store_dir option will override the root_path option. The only way for root_path to work is to remove store_dir. I think the problem is in file_column.rb on line 22: options[:store_dir]
2006 Jan 14
2
file_column, ActionMailer, and tests
Hi, Say I have a model Event that has a file_column called ''pdf''. I want to send out emails that contain the URL for the pdf file that''s associated with the Event. I also want to test the emails, so I''d need to be able to get at the URL for the pdf inside my unit tests. I don''t see how I can use url_for_file_column in this situation. Doing <%=
2006 Jan 04
4
file_column
I use file_column and it works fine. I tried to change the store_dir to a the path I want my files to be stored and not the default. I stored some images fine. But when I try to reach my images it seems like file_column uses the model_name/attribute_name on the image and not the store_dir I used. How can I change this ? Thanks in advance -- Alexander Antonakakis
2006 Apr 14
1
file_column and custom store_dir
I''m using file_column to store mulitple versions of an image in a custom directory "images/artwork/" with the :store_dir option. This is working fine for uploading and storing the images, but whenever I try and access the images with the url_for_file_column helper it keeps generating the default path. I thought it would replace this by default, but it doesn''t seem to.
2006 Feb 20
2
file_column: changing default store_dir
File_column plugin is great. I need to change the default :store_dir from the dynamic "model_name/attribute_name" to an equally dynamic "client_id/app_id/model_name/attribute_name". In my model I have: class Component < ActiveRecord::Base belongs_to :component_type belongs_to :component_group breakpoint file_column :content, :magick => { :versions
2007 Aug 18
1
problem with file_column url generator
Hi, I have the following in a viewer Here, @lst = Homework.find(:all) is an array of homeworks. I checked this this is correct. Based on the error below, somehow, the url_for_file_colum does not like to act on the model element. I checked the source code to url_for_file_column, and the problem is with instance_variable_get(). I have no idea wat is going on! Any help is appreciated. Gordon.
2006 Jul 21
2
Dreamhost - how to login to your unix account?
[apologies but dreamhost forums are down & I''m keen to get a rails up on my dreamhost account but the following isn''t clear to me - I''m just hoping one of the rails dreamhost users can set me straight] I''m having difficulty in PUTTY to login to my unix account. I''ve tried by using Putty SSH to access
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included file_column_helper_test.rb that shipped with the file_column plugin: def test_url_for_file_column_different_root_path Entry.file_column :image, :root_path => File.join(RAILS_ROOT, "public/files") e = Entry.new(:image => upload(f("skanthak.png"))) assert_match %r{/public/files/entry/image},
2006 Jun 10
0
Dynamic file paths in FileColumn
I have a file uploader application in ROR using the very nice FileColumn plugin. In looking at the source code I can see that there is a DEFAULT_OPTION hash with some root path options and such which can be merged from an options paramater. These static path changes are not a problem. My question is dynamic path options. My upload form, when you boil it down, has two fields. The first is
2008 Jul 08
0
Installing my own gems on a Dreamhost account
Hey all, Does anyone who uses Dreamhost have any experience installing your own gems there? On their wiki, I''ve found this: http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Using_Gems_Installed_in_Your_Home_Directory And this: http://wiki.dreamhost.com/index.php/Passenger (down at the bottom) But I seem to be too dumb to interpret these directions, since neither one seems to work.
2006 Jul 18
1
Capistrano Deployment on Dreamhost
I''m having trouble getting Capistrano to work on Dreamhost. I seem to be having problems logging in, but I can ssh fine to my dreamhost server from this machine. This doesn''t seem like a dreamhost specific thing to me, but I''m kind of stuck. Here''s the exception I get from "cap setup":
2008 May 23
0
Camping on Dreamhost
I spent a few hours tonight getting Camping working with FastCGI on Dreamhost. I pieced together information from a blog post, an email thread, and the SiteFive page on the Camping wiki, and posted my working results in two places: Camping wiki - http://code.whytheluckystiff.net/camping/wiki/CampingOnDreamhost Dreamhost wiki - http://wiki.dreamhost.com/Camping Hopefully this helps somebody! --
2005 Jul 28
0
Fwd: (Dreamhost) [Announcement] Ruby on Rails change to production mode
For anyone watching Dreamhost''s RoR support: Begin forwarded message: > -----Original Message----- > From: DreamHost Announcement Team [mailto:support-OZUH0SiS3Izby3iVrkZq2A@public.gmane.org] > Sent: Wednesday, July 27, 2005 8:58 PM > Subject: [Announcement] Ruby on Rails change to production mode > > This announcement applies only to users of Ruby on Rails, the web
2005 Dec 17
1
file_column url_for_file_column from within controler
Hello, i hope somebody can help me: How can i get the path/url for a file stored with file_column within any contoller? Is it somehow possible to use the url_for_file_column method from the file_column_helper.rb ? Greetings and thanx for any advise, Marc -- Posted via http://www.ruby-forum.com/.
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
2006 Apr 05
2
Typo on Dreamhost
I''ve had no success getting Typo running on my Dreamhost account. Does anyone have a link to an FAQ on getting Typo up on Dreamhost? Thanks. -- Posted via http://www.ruby-forum.com/.
2005 Dec 23
6
file_column and HABTM
I have several models that will be using file_column by way of the "Picture" class (HABTM). Right now, all pictures are stored in: public/picture/image/1/filename1.jpg public/picture/image/2/filename2.jpg Is there a way I can dynamically define the "store_dir" based on the model? For example, if I have "user", "product" and "place" models all
2006 Aug 16
0
Help get Mongrel on Dreamhost
I know there are some Dreamhoster users here, who might be interested in getting Dreamhost to support Mongrel. If you are, vote for the suggestion via this link: https://panel.dreamhost.com/index.cgi?tree=home.sugg&category=Software%20Installations&search=mongrel Cheers, Tom
2006 Aug 12
1
Which defect tracking tool (Dreamhost)
Hi, Just wondering what people use for defect tracking generally in the RoR community? Is there an open-source/free online defect tracking site available? I already have my own SVN via dreamhost but am now thinking about use of a specific defect tracking system for defects/enhancements to track them. Note - I''ve gone for Dreamhost hosting. Not sure if there is a specific
2006 May 19
1
LoadError - no such file to load -- pathname (Dreamhost)
I''ve started getting the following error on Dreamhost when trying to run any scripts or dispatch.* [barry]$ ruby -d script/server Exception `LoadError'' at ./script/../config/boot.rb:6 - no such file to load -- pathname ./script/../config/boot.rb:6:in `require'': no such file to load -- pathname (LoadError) from ./script/../config/boot.rb:6 from