-
Notifications
You must be signed in to change notification settings - Fork 167
Security
davout edited this page Jun 29, 2011
·
2 revisions
All user input should be expected and the parameters that a user should be able to submit must be whitelisted using the attr_accessible
class method.
If a parameter is acceptable for certain actions and is forbidden on other actions it must not be whitelisted, it must be handled explicitly in the action that needs it.
Every amount should be an instance of BigDecimal
.