Login
Roast topics
Find topics
Find it!
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
Roast topics
Find topics
Roast it!
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.