You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so, in the controller I must use "params[:driver][:id]" to get the value,
but sometimes I want it to be "params[:driver_id]"
and I change it to:
<%= text_field_with_auto_complete :driver,:id,:name=>'driver_id' %>
however, it doesn't work! I ve go deep into the source to find the reason, but nothing found...
so, I come here for help, thanks
The text was updated successfully, but these errors were encountered:
<%= text_field_with_auto_complete :driver,:id %>
generates:
<\input :id='driver_id' name='driver[id]'>\
so, in the controller I must use "params[:driver][:id]" to get the value,
but sometimes I want it to be "params[:driver_id]"
and I change it to:
<%= text_field_with_auto_complete :driver,:id,:name=>'driver_id' %>
however, it doesn't work! I ve go deep into the source to find the reason, but nothing found...
so, I come here for help, thanks
The text was updated successfully, but these errors were encountered: