Posts

Showing posts from October, 2019

drag and drop

Js. :javascript   Dropzone.autoDiscover = false;   $("#dropzone").dropzone({     url: "#{upload_url}",     success : function(file, response){         console.log(file);         console.log(response);         window.location = "#{upload_url}"     }   }); form in class  class: 'dropzone', id: 'dropzone'

Mobile api with devise

Mobile Rails API with Devise For the past two weeks I have been working on building out an API for one of our existing Rails apps for use by mobile devices. I started with Android since there were less barriers to entry there (no specialty development hardware needed) as well as perceiving that Java might be more beneficial for my career in the long-run than the Apple-centric Objective-C language. It took me quite awhile to wrap my head around what exactly I needed to accomplish to get this happen at the beginning; many of the tutorials and how-to's out there are outdated and not quite what I wanted, but I think I figured out an effective, secure and easy way to help get you started should you need to accomplish something similar. Before I do anything with the mobile device, we need to build out an API that can be communicated with on the server side of things. In rails, this is remarkably easy. My goal was to allow a user to login remotely, then be able to send either e...