title: Nothing happen when submitting Rails form_for
body: <p>It might be obvious, but I need another pair of eyes to get it. Clicking my "Submit" button doesn't produce anything (not a redirect, just nothing).</p>
  
  <p>The Rails 4 app is a booking system for car parks near airports. Here is everything:</p>
  
  <p><strong>routes.rb</strong>:</p>
  
  <pre><code>Parkix::Application.routes.draw do
  
  ...
  resources :books
  ....
  
  root to: "books#index"
  
  end
  </code></pre>
  
  <p><strong>books_controller.rb</strong>:</p>
  
  <pre><code>class BooksController &lt; ApplicationController
  
  def index
      @book = Book.new
  end
  
  def create
      @book = Book.new params[:book]
      render "index"
  end
  
  end
  </code></pre>
  
  <p><strong>book.rb</strong> (the model):</p>
  
  <pre><code>class Book &lt; ActiveRecord::Base
  
  attr_accessor :airport, :start_date, :start_time, :end_date, :end_time
  
  belongs_to :park
  belongs_to :user
  has_many :prices, through: :parks
  
  before_validation :generate_dates
  
  private
  
  def generate_dates
      self.start = Time.strptime "#{self.start_date} #{self.start_time}", "%d/%m/%Y %H:%M"
      self.end = Time.strptime "#{self.end_date} #{self.end_time}", "%d/%m/%Y %H:%M"
  end
  
  end
  </code></pre>
  
  <p><strong>books/index.html.erb</strong>:</p>
  
  <pre><code>&lt;%= form_for Book.new, url: { action: "create" }, method: :post do |f| %&gt;
  
  &lt;%= f.text_field :airport, placeholder: "Airport" %&gt;
  &lt;%= f.text_field :start_date, placeholder: "Start date" %&gt;
  &lt;%= f.text_field :start_time, value: "10:00", placeholder: "Start time" %&gt;
  &lt;%= f.text_field :end_date, placeholder: "End date" %&gt;
  &lt;%= f.text_field :end_time, value: "10:00", placeholder: "End time" %&gt;
  &lt;%= f.text_field :count_people, placeholder: "Count people" %&gt;
  &lt;%= f.submit "Search", class: "btn btn-primary" %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>As I said before, nothing happen when I click on the submit button. Does anyone have an idea?</p>
  
  <p>Thanks in advance.</p>