Simplest solution for uploading images to cloud service [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
What is the simplest way to allow people to upload an image to a cloud server (in a Rails 3 app)? I want to include an "upload image" button in the form, and store the address in my model. I'd also like to be able to constrain the file size.

I recommend attachinary and the cloudinary service:
https://github.com/assembler/attachinary
It's a huge time saver to not need to mess around with imagemagick. Cloudinary is an amazing service that resizes images on the fly. Attachinary comes with great integration to jquery upload widgets too.

Using the paperclip gem for rails:
Here is a nice tutorial: Uploading Files to S3 in Ruby with Paperclip

Related

Best Ruby on Rails CMS for a project that is not related to generating websites [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Just started learning Ruby on Rails here, and I'm about to start working on a backend for content management for custom-built mobile clients, where the clients connect to the server through a web-service.
I figured that instead of reinventing the wheel it would probably be best to just use a well-respected CMS gem to manage users and the various objects (products, product categories, images, etc), but every single one I look at seem to be almost exclusively made for generating websites, and not to manage content for a webservice.
Are there any good RoR CMS gems out there that I can tailor to fit my needs, or do I have to write my own from scratch?
You could use rails_admin for your CMS application.

Resize image on the client side with Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I was wondering if there is any way to resize an image on the client side before it is uploaded to the server. I'm using nested attributes for the image portion of the form. Ideally, it wouldn't be uploaded immediately - just resized and it would only then be upload upon submission of the form.
Does anyone know of any plugins that will do this?
EDIT: If there are plugins that will work with IE that would be great too.
See these:
Image resizing client-side with javascript before upload to the server
http://www.rubydesigner.com/blog/resizing-images-before-upload-using-html5-canvas
Here's the code for the last one:
https://github.com/josefrichter/resize/blob/master/public/preprocess.js
https://github.com/josefrichter/resize

Two step authentication in rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Is it possible to implement two step authentication in Rails using Google's android application Google Authenticator?
I want to implement two step verification similar to dropbox. They use Google Authenticator as well.
Is there any example code/application in rails?
A little googling has revealed a gem extension to devise that does this
https://github.com/AsteriskLabs/devise_google_authenticator
Or there's a blog post giving hints on how to roll your own
https://moocode.com/posts/5-simple-two-factor-ssh-authentication-with-google-authenticator
ActiveModel::Otp makes adding Two Factor Authentication(TFA) to a model simple https://github.com/heapsource/active_model_otp
I think this gem is way better since it's extendable. One can setup backup codes if you need.
Tinfoil Two factor

Capture screenshots for a Ruby on Rails application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a Rails app that I want to capture a screenshot of a webpage when the user enters a url.
Is it possible to do this in Rails (is there any gem that would do this?)
If not, are there any reliable services that generate live screenshots
I use IMGKit gem for that: https://github.com/csquared/IMGKit
Related topic: How to respond_to PNG or JPG in Rails and generate image from HTML?
ScreenCap gem which uses PhantomJS under the hood. Grab whole pages or just specific divs, or even exact x y coordinates.
I have used GrabzIt for this. This is quite simple.

Multiple files uploading on Ruby on Rails 3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I would like to upload multiple pictures to my Rails 3 application. I am currently using Paperclip to upload a picture, and I have some post processing operations assigned to the model Photo.
I saw some samples on the net (integrating uploadify, swfupload or some other libraries), but none was very detailed, and each one misses some steps.
What is the simplest way to do this?
A good JQuery uploader is jQuery-File-Upload . It has some paperclip samples and you can find a demo here
#params = {
"FacialImage" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\sachin.jpg'), "image/jpeg"),
"Login" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\login.txt'), "application/json")
}

Resources