%= simple_form_for @comments, as: 'comments', url: "/commenteux/#{@resource.downcase}/#{@resource_id}?parent_div=#{@parent_div}", :remote => true, :data => {:parent => @parent_div}, wrapper: :bootstrap do |c| %>
<%= c.input :comment, :label => 'Commentaire' %> <% if defined? current_user %> <% end %>