We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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'm using the following application helper that's handy when creating the :update_elements option:
:update_elements
def autofill form, *fields fields.inject({}) {|hash,field| hash.merge! field => "##{form.object_name}_#{field.to_s}" } end
Use like this:
f.autocomplete_field :brand_name, autocomplete_brand_name_products_path, update_elements: autofill(f, :slogan, :extra1, :extra2)
This can be used as a companion method to the model method for generating custom json when using semantic forms.
Maybe this could be incorporated into this gem.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using the following application helper that's handy when creating the
:update_elements
option:Use like this:
This can be used as a companion method to the model method for generating custom json when using semantic forms.
Maybe this could be incorporated into this gem.
The text was updated successfully, but these errors were encountered: