Skip to content

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

Description

@eyakcn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions