Vlad Hilko
Vlad Hilko
You need to use `direct_upload: true` inside the `input_html` attribute: `f.input :image, as: :file, input_html: { direct_upload: true }`
You can just get correct coordinates on click (args.leafletEvent.latlng) and compare this with your correct $scope.markers. This is my code on CoffeeScript ``` $scope.$on 'leafletDirectiveMarker.click', (event, args) -> latlng =...
First, you have to include 'leafletData' to your controller, after that add 'mouseover' and 'mouseout' events to your Marker. ``` angular .module('myapp') .controller("EventsController", [ '$scope', 'leafletData', function($scope, leafletData) { $scope.$on('leafletDirectiveMarker.mouseover',...
If you need to send an array of objects with files you can do something like this: ```rb parameter name: 'documents', in: :formData, type: :array, required: true let(:documents) do [...