title: Rails and AJAX remote: true what else is required?
body: <p>I'm confused about remote:true in Rails forms, I thought some Javascript was required to make it asynchronous but this just seems to break my page.</p>
  
  <p>Here is a really simple index.html.haml that includes a partial to show all appointments: </p>
  
  <pre><code>%h1 Calander
  
  %h2 AppointmentsController
  %h3 Make a new appointment
  
  = form_for @appointment, remote: true do |f|
    = f.text_field :title
    = f.text_field :appt_time
    = f.submit 'Make appointment'
  
  #appointments
    =render 'appointments'
  </code></pre>
  
  <p>Here is the previously mentioned partial: </p>
  
  <pre><code>    -@appointments.each do |a|
    %h3= a.title
    %p= a.appt_time
  </code></pre>
  
  <p>Controller methods for index and create:</p>
  
  <pre><code> def index
      @appointments = Appointment.order('appt_time ASC')
      @appointment = Appointment.new
    end
  
    def create
      @appointmet = Appointment.create(appointment_params)
      redirect_to :root
    end
  </code></pre>
  
  <p>Now this works fine.  I can add a new appointment, hit submit and the new appointment shows up without the page refreshing,  I think because I have included <code>remote: true</code>.  So do I need to add anything else to handle the request?  Am I violating best practices by not including something to handle this request and relying entirely on remote: true?</p>