Essentially, my goal is to provide users with a preview of their uploaded image before they finalize the submission.
Within the controller, I have the following:
def index
@temp = Temp.new
end
Given that @temp is not saved, can I still implement the solution outlined in Rails: Paperclip & previews? If not, could I potentially execute some JavaScript or other method to incorporate Ruby code?
This is an excerpt from my HTML:
= form_for @temp, :url => temp_path, :html => { :multipart => true } do |form|
= form.file_field :image
= image_tag @temp.image.url
= image_tag @temp.image.url(:medium)
= image_tag @temp.image.url(:thumb)