TIY-ATL-ROR-2015-Sep / assignments

0 stars 0 forks source link

HW 11-09 #423

Closed kingcons closed 9 years ago

kingcons commented 9 years ago

Description

Read up on URL generation, resourceful routing, and form helpers as described here.

Submission

Post a question you have from the reading in the comments when you close this issue for discussion in homework review tomorrow.

rmcwilliam commented 9 years ago

I found it interesting that one article talked about wether mass assignment security belongs on the model or the controller? I want to use mass-assignment all the time now, is that ok? I will just use "roles" and set mass-assignment security to strict to cover my ass.

rmcwilliam commented 9 years ago

In hindsight. It belongs on the controller as a strong parameter? I don't think I need to worry about roles and mass-assignment security with addition of strong parameters in rails 4?

sunrick commented 9 years ago

@rmcwilliam if you use strong parameters in your controller you should be fine! ask Brit if i'm full of it :)