Ajax request causing “param is missing or the value is empty” error
OK, after I fixed this issue , now I have this new one, which I don't seem to get my head around. This is my view and Javascript code: <script language="javascript" type="text/javascript"> function getConfig(){ $.ajax({ url: "<%= get_config_projects_url %>", data: { id: <%= @project.id %>, unit_mgt_address: $('.unit_mgt_address_class').val(), } }); } </script> <%= form_for(@project) do |f| %> <input type=button onClick="getConfig()"/> <div class="field"> <%= f.label :Unit Management Address %><br> <%= f.text_field :UnitMgtAddress, :class=>'unit_mgt_address_class' %> </div> <div class="actions"