I'm a complete beginner and I'm doing something similar (only not a photo gallery). I have a folder inside my application's 'public/images' folder called 'illustrations' and I would like to be able to upload images (GIF, JPG, PNG) from a user's desktop to this folder and then be able to display these together with a description. I've created a model with the following attributes: 'name:string', 'description:text' and 'imagelink:string'. I'm using Simply rails 2 as a reference book and it doesn't describe how to upload and display images. Is there a good tutorial somewhere that shows how to do this?
One particular thing I'm wondering about is whether I should rename 'imagelink' to 'image_url', is this a convention in RoR, to name paths/links to assets 'something_url'? (Sorry if this is a stupid question.)
Edit: Nvm, I found a solution. Paperclip ftw!
Last edited by kristofer (2010-01-01 08:35:37)