weathertopper / family-photo-project

0 stars 0 forks source link

Uploading pictures into a database #3

Closed weathertopper closed 7 years ago

weathertopper commented 7 years ago

There are a number of tools for doing this in Rails. Pick one. Also, how can I upload them to a less-accessible location on my machine?

weathertopper commented 7 years ago

This seems like a good place to start, but I reckon I should watch David Banas' videos again, or at least re-read up on what scaffolds do/generate. CarrierWave

weathertopper commented 7 years ago

Another option: Paperclip

weathertopper commented 7 years ago

By the way, using scaffold to generate stuff just auto-magically makes the basic CRUD setup for an object.

weathertopper commented 7 years ago

I have images and image thumbnails.

I went with CarrierWave because I liked the tutorial. I had to Google and tweak a bunch of crap (naturally), but in particular I will want to update my migrations when I re-build this.

Technically, this is done because I got it working (Yay).

weathertopper commented 7 years ago

Added bonus-- figured out image upload via seed.rb!

weathertopper commented 7 years ago

I'm moving this back to 'in progress.' I need to figure out how to tag and crop pictures in the browser. If not crop, I need to figure out how to limit the dimensions of an image at upload time.

weathertopper commented 7 years ago

Watch this later for cropping, resizing, and preview images Railscast

weathertopper commented 7 years ago

I think photo tagging will be more of a brute-force JS problem dealing with image sizing and manipulation. I'll need to read a style guide to better figure out how to use other tools/files before I do this, methinks.

weathertopper commented 7 years ago

I'm moving this to done. Photo tagging can be another issue