Advertisement

07.11.2008 at 10:29AM PDT, ID: 23557946 | Points: 250
[x]
Attachment Details

Ruby on Rails File Uploading

Asked by HangingClowns in RubyOnRails, WebApplications

I have a Photo model in my application that consists of a table field called: image_url in String format. I'd like to be able to upload an image using the file field ruby tag to a generated scaffold. A problem I am getting is that the beginning tag is <%= form_for(@photo) do |f| %>. It is giving me some kind of merge error in my controller, I believe, that is preventing a function that I tried to rig together in my Photo controller.

I'd be more than happy to replace any of my code with something that WORKS. I just need to get something up and running as of right now, then I will probably look at using an upload plugin to help satisfy what I need.

Thank you for any help that you can give.Start Free Trial
[+][-]07.13.2008 at 11:04PM PDT, ID: 21995972

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 03:16AM PDT, ID: 21996839

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.14.2008 at 07:56AM PDT, ID: 21998607

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 06:47AM PDT, ID: 22015841

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 07:20AM PDT, ID: 22016158

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628