You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, in my staffs#edit page, I have the same setup. This time, still no link for attachment preview. But there is a preview for image preview field. However, when I change to a new image, it does not refresh the preview.
I did not do any additional setup. I tried:
SimpleForm::FormBuilder.map_type :image_preview, to: SimpleForm::Inputs::ImagePreviewInput
SimpleForm::FormBuilder.map_type :attachment_preview, to: SimpleForm::Inputs::AttachmentPreviewInput
and it doesn't work. I don't think it is related to this issue.
Am I missing some front end setups such as putting some JS file in application.js?
Please help! Thank you!
I am using Rails 4.2.6, Ruby 2.2.3, Simple_form 3.2.1, client_side_validations 4.2.3 and bootstrap 3.3.6
The text was updated successfully, but these errors were encountered:
Following the tutorial, I added both image_preview and attachment_preview to two separate input fields:
in
new
page for myStaff
model.But, when I add a pdf file to attachment preview field. Nothing happened. When I add an image to image preview field, no preview is shown.
The HTML generated for my image preview input is:
It does not have
preview_version
setup either.Then, in my
staffs#edit
page, I have the same setup. This time, still no link for attachment preview. But there is a preview for image preview field. However, when I change to a new image, it does not refresh the preview.I did not do any additional setup. I tried:
and it doesn't work. I don't think it is related to this issue.
Am I missing some front end setups such as putting some JS file in
application.js
?Please help! Thank you!
I am using Rails 4.2.6, Ruby 2.2.3, Simple_form 3.2.1, client_side_validations 4.2.3 and bootstrap 3.3.6
The text was updated successfully, but these errors were encountered: