Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
311 views

How to add a new item to strong parameters with Rails?

Rails version: 5 I want to post a new item named urls to rails from frontend. export function printPosts(params) { const endpoint = `v1/posts/print` return http.post(endpoint, params).then(({ data ...
iooi's user avatar
  • 523
0 votes
1 answer
346 views

How to permit an array json with Rails?

For json { "version":"1", "configs":[ { "title":"Good", "body":"Body" }, { &...
iooi's user avatar
  • 523
2 votes
2 answers
705 views

Rails 4: strong parameter with variable key hash

I need to be able to permit parameters that contain a hash with a variable key. I've looked at other solutions but none seem to work for me. The parameters are as follows: {"consult_stat"=>{"...
Jeremy Thomas's user avatar
0 votes
1 answer
1k views

Rails permit nested hash parameters

Here are my params: {"utf8"=>"✓", "authenticity_token"=>"g0mNoBytyd0m4oBGjeG3274gkE5kyE3aPbsgtqz3Nk4=", "commit"=>"Save changes", "plan_date"=>{"24"=>{"recipe_id"=>"12"}, "25"=>{"...
james's user avatar
  • 4,029