I've followed all guides and answers, and everything displays correctly, but the actual upload doesn't happen :(
Here's in my ActiveAdmin:
form :html => { :enctype => "multipart/form-data" } do |f|
f.inputs do
f.input :name
f.input :image, :multipart => true
end
end
Here's in my model:
has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" }, :path => ":rails_root/app/assets/images/article_images/:id/:style_:basename.:extension"
I've tried without a path also, didn't work.
Here's my migration:
class AddAttachmentImageToArticle < ActiveRecord::Migration
def self.up
add_column :articles, :image_file_name, :string
add_column :articles, :image_content_type, :string
add_column :articles, :image_file_size, :integer
add_column :articles, :image_updated_at, :datetime
end
def self.down
remove_column :articles, :image_file_name
remove_column :articles, :image_content_type
remove_column :articles, :image_file_size
remove_column :articles, :image_updated_at
end
end
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)