I
I
Ilya Agarkov2015-01-31 17:53:21
Ruby on Rails
Ilya Agarkov, 2015-01-31 17:53:21

Rails/Carrierwave multiple upload by URL?

Tell me how to upload images for the user, having an array of urls
User model

class User< ActiveRecord::Base

  has_many :images
  accepts_nested_attributes_for :images
   
  end

model picture
class Image < ActiveRecord::Base
   mount_uploader :image, ImageUploader
   belongs_to :user
end

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Vsk, 2015-01-31
@ElianL

I mean, write models, controllers, routes and views for you?
Well, you understood everything correctly - and that carrierwave needs to be hung on a separate model. And that nested_attributes should be used.
With this wording, you give us freelancing. Here - with specific questions. What doesn't work, where are you stuck?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question