Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to use "params[:driver_id]" but this plugin only accepts "params[:driver][:id]" #6

Open
eyakcn opened this issue Jun 25, 2010 · 1 comment

Comments

@eyakcn
Copy link

eyakcn commented Jun 25, 2010

<%= 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

@eyakcn
Copy link
Author

eyakcn commented Jun 26, 2010

have figure it out

<%= text_field_with_auto_complete :driver, :id,
{:name=>'driver_id'}, {:param_name=>'driver[id]' } %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant