Login
From:
Boring Rails: Skip the bullshit and ship fast |
(Uncensored)
subscribe
Automatically cast params with the Rails Attributes API
https://boringrails.com/tips/rails-attributes-api
links
backlinks
Tagged with:
ruby
rails
A common practice in Rails apps is to extract logic into plain-old Ruby objects (POROs). But often you are passing data to these objects directly from controller params and the data comes in as strings.
Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Roast topics
Find topics
Find it!