Add map locations. Each map location can belongs to proposal or budget investment.

This commit is contained in:
Senén Rodero Rodríguez
2017-08-07 11:10:38 +02:00
parent 6c1d1c2cde
commit 5956207a00
14 changed files with 119 additions and 17 deletions

View File

@@ -77,7 +77,8 @@ class ProposalsController < ApplicationController
params.require(:proposal).permit(:title, :question, :summary, :description, :external_url, :video_url,
:responsible_name, :tag_list, :terms_of_service, :geozone_id,
image_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy] )
documents_attributes: [:id, :title, :attachment, :cached_attachment, :user_id, :_destroy],
map_location_attributes: [:latitude, :longitude, :zoom])
end
def retired_params