ajax - Rails upload image and reposition like facebook -


i making app in want upload cover facebook , reposition it.

can tell me how can make possible in rails?

this demo link:

http://demos.9lessons.info/ajaximageupload/index_bg_drag.php

this great if can tell me how can same in rails. in advance.

you can follow following tutorial image cropping , other stuff :

https://railskumar.wordpress.com/2015/05/01/crop-zoom-and-rotate-image-using-carrierwave/ http://railscasts.com/episodes/182-cropping-images?view=asciicast

pro : http://railscasts.com/episodes/182-cropping-images-revised?view=asciicast

whichever tutorial follow submit form using :remote => true . can not submit image in simple form either need submit in iframe or through flash. solve problem use remotipart gem.

same example image upload here.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -