similar to: Problems with File_column

Displaying 20 results from an estimated 600 matches similar to: "Problems with File_column"

2006 Oct 30
2
file_column uppercase extension problem
i''m using file_column 0.3.1 with rails 1.1.6, ruby 1.8.4, on winXP, and i have this problem: when I try to upload in my web application an image using file_column plugin, if the extension of the image contains at least 1 uppercase (e.g. myImage.jpG), I get this error: No such file or directory - ./public/model/picture/tmp/1162229227.753000.516/myImage.JPG or
2006 Jan 23
15
Looking for DB/Model Design Suggestions
Hi, I''m working on an app - my first Rails - and am looking for some suggestions on the best way (or good way) to set up my models / DB. In general there are teams and matches; a team will participate in multiple matches, and in each match there will be 6 teams - 3 vs. 3. I''m going to want to be able, for a particular team, pull up all matches for that team, to display a
2006 Jan 22
3
file_column and tmp files
Hi again... One more item.. the file_column plugin uses a tmp directory inside the /public directory to store a temporary uploaded item. But it looks like this folder is just going to grow and grow. Is there some way to clear this out or not cause this to happen? Thanks once again! -- Posted via http://www.ruby-forum.com/.
2006 Apr 14
18
RJS Templates & Safari?
Hello, I tried Cody Fauser RJS tutorial (http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates) on my railsplayground dev site and got it to work when using Firefox, but when I tried it on Safari, nothing happens. Then I tried this tutorial - http://rewrite.rickbradley.com/articles/2006/02/06/rjs-templates Similarly, it works fine on Firefox... but with Safari the list is not
2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all setup. A couple of issues though: 1. Is the Ruby 1.8.2 install by Apple still botched or has that been fixed? I recall someone had fixed the rbconfig.rb to get it working. Is this something I still have to do? 2. Does anyone know if Locomotive is using the uniersal binaries, or is it targetting PPC yet? I couldn''t
2006 Mar 23
4
Error with Rails 1.1RC1 and Properties page
I just tried setting up a simple Rails app, after updating to the 1.1RC1 version of Rails. Generating a simple scaffold worked fine, and WEBrick started fine with script/server. I then went to the http://localhost:3000 page and clicked on the "About your application''s environment" link, and an error was displayed: NoMethodError in Rails/info#properties private method
2006 Mar 23
1
Using ImageMagick with Locomotive
Hi, I''m trying to use the routines on this page: <http://addictedtonew.com/archives/127/rotating-images-with-rmagick-and-ruby-on-rails/> to try and rotate some images. I tried using the script/console to do some testing, - I know ImageMagick is working, as I''m using the filecolumn plugin to resize images as they are loaded. When I try, using the console, to rotate an
2006 Jan 23
3
Clearing a file_column-type field
So I am now able to set/upload an image to my app using file_column, with a little bit of a change to the code. I can change the image using an Edit page, but I''m trying to figure out what to do if the user wants to remove the image. I tried adding a Remove Image link in my list, but I''m not sure what to do in the remove_image method in my controller. I tried setting the
2006 May 12
12
Anyone tried the recent Mac OS X Security update?
It includes a patch for Ruby. I have already installed 1.8.4 from source, and updated my PATH to look in /usr/local first, so I don''t imagine that anything Apple does to "their" copy of Ruby will have any impact on me, but I''m wondering if the changes to their Ruby is something that needs to be done to 1.8.4 as well. Thoughts? Walter
2006 Apr 06
1
Strange message in fastcgi.crash.log
Hi, I just installed Ruby 1.8.4 and Rails using the HiveLogic instructions (I had been using Locomotive, and decided to make the big leap). Everything seems to go well, I set up a simple test app and it does run using script/server (using a sqlite3 database). I am noticing that when I use Control-C to stop the server, I''m seeing this message in the fastcgi.crash.log file:
2007 Mar 11
4
Faking it... import local files into attachment_fu
Hello, I''m working on an import utility that will match the functionality of uploading an object of a model that uses attachment_fu for thumbnailing, etc. Rather than uploading the file via a form, I want to populate the params[:image][:uploaded_data] with data from a file already on the server''s file system. So far, I''ve been able to copy to an instance of Tempfile
2007 Apr 27
3
Image upload problem.
I''ve seen posts of a few people who have this problem, but not a single response about solving it. I can''t upload .png files, but .jpg and .gif work fine. When I upload just a .png, my action gets a StringIO object which breaks when I try to copy the upload to an absolute location. However, using multiple-field upload, as long as one of the to-upload files is *not* a .png, all
2006 Mar 13
4
Find and eager loading questions
Hi all, I want to see if I''m not missing something with associations and eager loading. (I''m currently using Locomotive on OS X and SQLite3.) I have two simple tables/models, set up properly: teams has_many :matches and matches belongs_to :teams. Matches has a match number and a team_id field (along with several other fields) and teams has a team_number field (again, along with
2006 Apr 30
3
Problem(?) updating gems - mysql gem
Hi, On OS X (10.4.6), Rails 1.1.2... I tried doing a sudo gem update, and this is the result I''m getting: Upgrading installed gems... Attempting remote upgrade of mysql Attempting remote installation of ''mysql'' Select which gem to install for your platform (powerpc-darwin8.6.0) 1. mysql 2.7.2006.04.21 (mswin32) 2. mysql 2.7 (ruby) 3. mysql 2.6 (ruby) 4. mysql
2006 Apr 04
6
Replaced Rails Package with HiveLogic Install - problems
Hi, I''ve got a strange problem. I had initially installed Rails using Tony Arnold''s package: <http://www.tonyarnold.com/articles/category/rails> and that worked fine. (on OS X, obviously). I then decided to reinstall using the instructions on the HiveLogic page, to get Ruby 1.8.4: <http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger> That
2006 Apr 20
4
Question about Associations
Hi all. Got a stupid-simple question about associations. I have two models - school and course. There are a fixed number of schools (set up in the migration). Each course is assigned a school and a school will be associated with multiple courses... How do I set up the associations? Do (can) I have School :has_one :course and Course :has_many :schools? Does the schools table then get a course_id
2006 May 25
5
Model Structure Advise
Hi, I''m starting to build a simple (?!) FAQ system, and I''d like some advice on setting up the model relationships. I was going to go with a simple system of a Category table and a FAQ table (holding questions and answers) - where one FAQ belongs to one category. That''s all nice - a simple has_many / belongs_to relationship. Then I decided to add another level - Area.
2006 Apr 14
2
Which Ruby is my Rails using?
I just noticed something. I''m running OS X and I''ve installed/updated Ruby to 1.8.4 using the HiveLogic instructions. In generating a new app, I noticed that the dispatch.cgi, dispatch.fcgi and dispatch.rb all start with: #!/usr/bin/ruby and not #!/usr/bin/env ruby The script/server file does use ''env''. Now, how will this impact how Rails is run? Will it
2006 Jul 02
6
How do you move an application to a newer version of Rails?
Hello, I''ve got an app written in rails 1.1.2 and I need to move it to 1.1.4 Installing the older version of rails is not an option (it''s not my system) unfortunately. Thanks, -Jon -- Posted via http://www.ruby-forum.com/.
2006 Apr 13
10
Code Igniter
Hi all, I was just made aware of this: <http://www.codeigniter.com> I wonder where the inspiration comes from? Lots of very similar concepts there ;) I''ve only watched the intro movie so far, but very interesting. jt