-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pass param to controller #209
Comments
well, you a tring to user view_context in datatable which is not possible becase the context is available on in controller. |
@ajahongir what im trying to do is, pass params with hidden field from method data in post_datatable.rb |
You can try to do form from a helper method and add to datatable .rb file whit a delegator |
What you want here is Rails def data
records.map do |record|
{
foo: record.decorate.name
bar: record.decorate.publish_button
}
end
end |
BTW, remove |
Also it won't work if you're using Rails in API mode : #240 |
How to pass parameter from form in datatable.rb?

I keep getting error : undefined method `[]' for nil:NilClass
I checked the params somehow always return to nil
Is there any specific way to pass params in this?
i tried #59 (comment)
The text was updated successfully, but these errors were encountered: