I\'m trying to use a Bootstrap modal in Rails to edit a record, but I can\'t get the modal to scope to the current record
The static link is
<%= lin
I'm assuming you want to load the modal from a page other than the edit page.
I've got this working in my app by writing the link myself and using data-remote
to specify the remote page to load. e.g
<%= form_for @ticket, :html => { :class => 'form-horizontal' } do |f| %>
<%= f.label :customer_name, :class => 'control-label' %>
<%= f.hidden_field :customer_id, :class => 'text_field', :id =>"cust_id" %>
<%= f.autocomplete_field :customer_name, autocomplete_customer_name_customers_path, :id_element => '#cust_id', :class => 'text_field ui-autocomplete-input' %>