Displaying 20 results from an estimated 10000 matches similar to: "Uploading data"
2006 Jul 17
6
taking input
Hi everybody, I''m pretty new with Ruby on Rails and I was hoping someone
could help me out. I''m trying to take in data from a file and add it to
my existing database. what I''m thinking is that I have to create a
class that reads the data and copies it. I''m not sure how I will input
the data into my database. I''m not sure if this approach is the
2006 Mar 13
4
Problem realted to upload..
I want to upload a file.
And what I am confused about is...should I upload it using a separate
table or just as another file in the form.
If as a separate table then I am not able to save it on the system/
Or/ If not that, then how can i check for the extensions?
Do reply.
Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 25
3
Rails Plugins: Why to register your own functionality with send()?
Hi there,
I have seen in the file column plugin (
http://www.kanthak.net/opensource/file_column/) from Sebastian Kanthak or
David''s acts_as_taggable plugin that to register my functionality I need to
do something like this:
ApplicationHelper.send(:include, InPlaceEditAssociations)
I am wondering why not:
(a)
module ApplicationHelper
include InPlaceEditAssociatons
end
or:
(b)
2006 Mar 22
3
Problems with validates_presence_of...anybody?
Hello everybody,
I have been developing small applications in Rails from quite some time.
But lately, I came across a bug which I have not been able to correct.
If anybody could help me with it, would be of great help thankyou.
Actually, the problem is that I have a form in my application with some
set of fields.
Now what "validates_presence_of" should do is that if I submit the form
2006 Jan 19
3
Upload File To Web Server?
Hi,
How can one unload a file in Ruby on Rails?
It?s where the user must select a file on the desktop PC and upload it via
the web browser.
I also need the type / extension of the file along with its size before
upload proceeds.
Kind Regards,
Lennie De Villiers
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database:
2005 Dec 19
3
RMagick Resizing Issue
Hello ~
I have RMagick and file_column working in RoR. In my model I am setting up
some standard sizes for the submitted photos. The photo files are created
and named correctly, but the sizes are wrong. Only the second argument of
my geometry call is used, with the width dimension being resized
proportionately.
file_column :image, :magick => { :versions => { "medium" =>
2006 May 09
2
handling file upload onto local filesystem.
Hi,
I have a multipart form upload field uploaded through <%=
file_field("profile", "profile") %>
Once a submit happens, the action basically does something like:
profile = Profile.new(params["picture"])
This invokes the models = to method:
def picture=(picture_field)
...do a bunch of assignments here
end
def validate
... do a bunch of validations
2006 Jan 08
1
uploading an image to a Rails app
Hi,
I want to upload a product image to my rails app. I only want to store
the file name in the database and the actual image file in
public/image/. This seems complicated with file_field. Any pointers or
links with explainations?
Thanks,
Peter
2006 Jun 16
4
Depot App: Upload Images
Hello,
I''m a newbie to Ruby on Rails and like many others, I have been working
through the depot application in the Agile Web Development book.
I was wondering if anyone had enhanced the depot application to include
the upload of images for each product? The following describes the sort
of thing that I have been asked to produce for a client, so apologies if
the information is not
2006 May 01
10
large file storing in postgres sucks?
Hi,
I''m not sure if this is a postgres issue or not, but I''m using
Postgres 8.1. I have (in my functional tests) the following code:
upload = fixture_file_upload(''/files/podcast.mp3'', ''audio/mpeg'')
post :create, :product => valid_product, :media => { :image => upload }
And then in the controller:
blob = Blob.create :data
2005 Dec 28
2
has_images
Out of curiosity: is anyone working on something like a "has_images"
association? As in it would be able to handle images at the model level.
Not neccissarily hold them in a DB, but as flat files, as part of the
filesystem.
I''m continually finding myself in need of something like this. A way of
associating an image or a set of images to a model.
I''m starting on it
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload
only jpeg & gif & png images into public/images using rubyonrails"
Thanks in Advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2005 Nov 17
1
original filename doesn't display in file_field
In my item upload view I have:
<%= file_field ''item'', ''file'' %>
and in my Item model:
def file
@file
#@file.original_filename # <- also tried this
end
def file=(file)
@file=file
end
And if the upload bails because of errors (and renders the same page), all other fields
(text_field, text_area, etc.) retain their inputted values, but the file
2006 Mar 24
1
upload a file to server???
Hi,
We would like to upload a file to the server, like
user chooses a file with a browse button, then click
on a OK button, then the browser send the file to the
server, does anyone know how to do it in rails?
Thanks you very much
Saiho
The mind is its own place, and in itself.
Can make a Heaven of Hell, a Hell of Heaven.
http://www.geocities.com/sayoyo/
2006 Apr 10
3
File Upload Problems
following the instructions at
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles, I am able
to upload to an explicit and existing directory (i.e.
c:\ror\app\public\images\photo.jpg). However, when I try to upload to
a folder that does not exist, say,
c:\ror\app\public\image\newfolder\photo.jpg, I get the following error:
Errno::ENOENT in Images#create
No such file or directory -
2006 Jan 20
2
Creating thumbnail on the fly
I was doing some research about creating thumbnail images on the fly
after an image has been uploaded in a form, but for some reason it''s not
working for me. I''ve downloaded ImageMagick 6.2.5 for Mac but when I run
a test (identify image.gif) it gives me this error:
dyld: Library not loaded: /sw/lib/libjpeg.62.dylib
Referenced from: /Developer/ImageMagick-6.2.5/bin/identify
2005 Aug 17
7
(newbie) #{method}_relative_path empty (file upload 0.1.2)
first off, thanks (a lot!) sebastian for creating this module... I''ve
been spending a lot of time in getting file uploads to work.
inside a project I''m working on, I''ve got two different models using
it... with one of them it''s working just fine. with another,
everything works, with the exception of the url_for_file_column
helper, which shows
2005 Dec 23
1
Handling file uploads & mixing class and instance vars
Hey Everybody,
This is the only way I''ve been able to get my file
upload to work:
class Item < ActiveRecord::Base
def file=(upload)
@file=upload
end
def after_create
File.open("public/items/#{self.id}.jpg", "w") {
|f| f.write(@file.read) }
end
end
The upload form has "file_field ''item'', ''file'',
2006 Mar 01
4
graphics rendering
Hey
Has anyone got a graphics server running alongside ruby on rails? Kind
of new to graphics rendering on a web server, so some general tips on a
successful direction to go in would be great. I need it for automatic
rescaling of images, similar to flickr.
Thanks,
RGC
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Apr 26
3
re-sizing pictures.....
So i followed the steps in the agile development book and everything is
working just fine... i even added a few new functions to list and manage
the pics. but what if i start uploading big pics? i don''t want to have
huge desk-top size pics taking up the whole page all the time. right?
so does anyone have a sort-of thumbnail thing they''d be willing to
share? any help would