port5432
port5432

Reputation: 6403

What does url in simple_form do?

In the simple_form bootstrap example code, there is a reference to url: create_horizontal_examples_url in the form.

What is this url for?

https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/app/views/examples/_horizontal_form_sf.html.erb

<%= simple_form_for @user_horizontal, url: create_horizontal_examples_url, as:  'user_horizontal', html: { class: 'form-horizontal' },
  wrapper: :horizontal_form,
  wrapper_mappings: {
    check_boxes: :horizontal_radio_and_checkboxes,
    radio_buttons: :horizontal_radio_and_checkboxes,
    file: :horizontal_file_input,
    boolean: :horizontal_boolean
  } do |f| %>
  <%= f.error_notification %>

Upvotes: 0

Views: 1315

Answers (1)

pixelearth
pixelearth

Reputation: 14630

This is the url that the form data is submitted to.

Upvotes: 1

Related Questions