I’m pretty new to Ruby on Rails.
I changed this thread, because i recognized that I was searching for my problems’ solution at the wrong end.
Here’s my Problem:
I got a Class ProfileProposal which I upload an Image with(Using CarrierWave).
Now I want to convert ProfileProposal to another class, called Profile.
So I pass all the Information to the NEW-Form of Profile.
Works fine with strings, but not with Images.
What I’ve already tried/done:
Pass the Image as GET Param to the Create Method:
<%= form_for @profile, :url => { :action => "create", :controller => "profiles", :image => @profile_proposal.image } do |f| %>
#
Which now works, so I DO have the image-url.
What’s not working is the following:
@profile = Profile.new(params[:profile], :image => new_image_url)
# OR
@profile.image = new_image_url
@profile.image still has the default value given by Carrierwave.
Thanks in advance!
I finally fixed that problem, by using paperclip and creating a new Instance via