Hi, I’d like to know what is the easiest and best way to save images
and videos (both plural) into a model.
Also I’d like to know how to upload and change those videos and images
with the active admin gem for an admin interface (the admin is the
only one that will access this model).
Thank you,
Rodrigo
dracko
October 11, 2011, 8:55am
2
Have you considered storing the content outside the database and using
filenames with a path to reference them?
Peter
dracko
October 11, 2011, 2:38pm
3
But how do I do that so that an admin can upload files at the admin
interface? so that this admin doesn’t need to know anything about
programming or that setup.
On Tuesday, October 11, 2011, Peter H. [email protected] wrote:
Have you considered storing the content outside the database and using
filenames with a path to reference them?
only one that will access this model).
Thank you,
Rodrigo
–
You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] <
[email protected] >.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
–
You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] <
[email protected] >.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
dracko
October 11, 2011, 3:41pm
4
Add a field for the filename in the model object. populate this with the
name of the file uploaded that you’d otherwise put in to the database.
An alternative is to store the files in the database as a blob, but what
if
your database is then full of 20Mb rows?
P
dracko
October 11, 2011, 3:54pm
5
how do i upload that file to amazon s3, for example, using the active
admin
interface? and how do i get that file name?
On Tuesday, October 11, 2011, Peter H. [email protected] wrote:
Add a field for the filename in the model object. populate this with the
name of the file uploaded that you’d otherwise put in to the database.
An alternative is to store the files in the database as a blob, but what
if your database is then full of 20Mb rows?
only one that will access this model).
Thank you,
Rodrigo
–
You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] <
[email protected] >.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
–
You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected] .
To unsubscribe from this group, send email to
[email protected] <
[email protected] >.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en .
dracko
October 12, 2011, 8:56am
6
I can’t help with that - what do the S3 docs say?