react_webpack_rails | lightweight react-webpack-rails integration | Frontend Framework library
kandi X-RAY | react_webpack_rails Summary
kandi X-RAY | react_webpack_rails Summary
Simple and lightweight react-webpack-rails integration.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react_webpack_rails
react_webpack_rails Key Features
react_webpack_rails Examples and Code Snippets
Community Discussions
Trending Discussions on react_webpack_rails
QUESTION
In my rails app, I'm trying to implement a private gallery using carrierwave gem. Only owner of the gallery can visit gallery and sees images.
On the gallery show page these images should be displayed as thumbnails. I'm using reactjs for the view layer react_webpack_rails
For single image i can use send_file
or send_data
but these methods only open or download the image inside my browser and whats worse i cannot use them with ajax request.
Summary: In this situation, what is a correct and the most efficient way to pass images/data from rails controller to the client side?
...ANSWER
Answered 2017-Jan-19 at 13:30First of all you can use MiniMagick gem to make your thumbnails easy.
Then you could just put images you need at the cloud service like Cloudinary or Amazon S3 and store the links to it in your DB. In that way you could initialize in your controller's action some images and render them in your view.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react_webpack_rails
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page