Ruby on rails 远程true在更新方法中不起作用

Ruby on rails 远程true在更新方法中不起作用,ruby-on-rails,ruby,ajax,ruby-on-rails-3,simple-form,Ruby On Rails,Ruby,Ajax,Ruby On Rails 3,Simple Form,我有这个密码 <%= simple_form_for my_object, url: object_path(object_id), html: {class: "form account-form"}, remote: true do |f| %> <div class="row"> <div class="col-md-4"> <%= f.input :numero_matr

我有这个密码

    <%= simple_form_for my_object, url: object_path(object_id), html: {class: "form account-form"}, remote: true do |f| %>
        <div class="row">
          <div class="col-md-4">
                <%= f.input :numero_matricula, label: "Núm. de Matricula" %>    
          </div>
          <div class="col-md-4">
          <%= f.input :rg, label: "Rg", required: true %>   
        </div>
        <%= f.button :submit, class: 'btn-default', disabled: false %>
    <% end %>
这是控制器:

class FuncionariosController < ApplicationController  
   respond_to :html, :json, :js  

   def update
    @Object = Funcionario.find(params[:id])
    @object.update_attributes(params[:object])
   end
end
class FunctionariosController
有人知道我做错了什么吗


如果您需要更多信息,我可以提供…

您可以添加发布到的控制器操作吗?这很奇怪-您在JS控制台中看到任何错误吗?控制台中没有错误,奇怪的是,我有另一个类似的实体,可以完美地与ajax请求一起工作。我唯一能想到的是rails ujs帮助程序在编辑视图中的某个地方被覆盖,因此没有为表单添加提交处理程序。非常感谢@roo,我会检查这一点!
class FuncionariosController < ApplicationController  
   respond_to :html, :json, :js  

   def update
    @Object = Funcionario.find(params[:id])
    @object.update_attributes(params[:object])
   end
end