formtastic does not save at all

Rails 3.1.3

I am using Formtastic gem in order to deal with multi-select

<%= semantic_form_for(@give) do |f| %>
  <%= f.inputs do %>
    <%= f.input :departure,
  :collection => Departure.find(:all, :order=>:city).collect{ |c|
  :required=>true %>
    <div id="destinationCity">
      <%= render :partial => 'destination' %>
    <div id="airlineCompany">
      <%= render :partial => 'airline' %>
    <div id="flight_name">
      <%= render :partial => 'flight_name' %>
    <%= f.input :day_departure, :as => :date_select, :hint => 'Select a
         :start_year =>,
   :label => "Departure date" %>
    <%= f.input :weight %>
    <%= f.input :check_in %>
  <% end %>
  <%= f.actions do %>
    <%= f.action :submit, :button_html => { :class => "btn btn-large
btn-primary" } %>
  <% end %>
<% end %>

The partials and jQuery ajax functions work properly.

But the problem is the clicking the submit button does not do anything
at all!!!!

If there is an error in saving the data, it should show some kind of
message in the console.
But the button simply does nothing.

I don't think it matters, but the gives_controller is the following.

  def create
    @give =[:give])
    respond_to do |format|
        format.html { redirect_to @give, notice: 'Give was successfully
created.' }
        format.json { render json: @give, status: :created, location:
@give }
        format.html { render action: "new" }
        format.json { render json: @give.errors, status:
:unprocessable_entity }

If there is at least an error, I may be able to provide more
information, but the submit action does not do anything, so I am stuck

Can anyone guess where the problem is?


I had a similar problem, and you can read on what I found on github