Class: GeographicItemsController

Inherits:
ApplicationController show all
Includes:
DataControllerConfiguration::SharedDataControllerConfiguration
Defined in:
app/controllers/geographic_items_controller.rb

Instance Attribute Summary

Attributes inherited from ApplicationController

#is_data_controller, #is_task_controller, #meta_data, #meta_description, #meta_keywords, #meta_title, #page_title, #site_name

Instance Method Summary (collapse)

Methods included from DataControllerConfiguration::SharedDataControllerConfiguration

#set_is_shared_data_model

Methods inherited from ApplicationController

#clear_project_and_user_variables, #digest_cookie, #digested_cookie_exists?, #disable_turbolinks, #intercept_api, #invalid_object, #is_data_controller?, #is_task_controller?, #log_user_recent_route, #notice_user, #project_matches, #record_not_found, #set_project_and_user_variables, #set_project_from_params, #token_authenticate

Methods included from ProjectsHelper

#project_link, #project_tag, #projects_list, #projects_search_form

Instance Method Details

- (Object) geographic_item_params (private)

Never trust parameters from the scary internet, only allow the white list through.



47
48
49
# File 'app/controllers/geographic_items_controller.rb', line 47

def geographic_item_params
  params.require(:geographic_item).permit(:point, :line_string, :polygon, :multi_point, :multi_line_string, :multi_polygon, :geometry_collection)
end

- (Object) set_geographic_item (private)

Use callbacks to share common setup or constraints between actions.



41
42
43
44
# File 'app/controllers/geographic_items_controller.rb', line 41

def set_geographic_item
  @geographic_item = GeographicItem.find(params[:id])
  @recent_object = @geographic_item 
end

- (Object) show

GET /geographic_items/1 GET /geographic_items/1.json



8
9
# File 'app/controllers/geographic_items_controller.rb', line 8

def show
end