You're seeing just the function forage_select, go back to ForageWeb.ForageView module for more information.
Link to this function

forage_select(form, field, opts)

Widget to select multiple external resources using the Javascript Select2 widget.


  • form (%Phoenix.HTml.Form.t/1)- the form
  • displayer (module) - a module with a displayer.as_text/1 function to display the foreign resource.
  • field (atom)

Required options:

  • :path (required) - the URL from which to request the data This function won't be applied to values requested from the server after the initial render.
  • :foreign_key (optional) - The name of the foreign key (as a string or an atom). If this is not supplied it will default to field_id