TIY-ATL-ROR-2015-Sep / assignments

0 stars 0 forks source link

HW 11-09 #426

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.

violetaria commented 9 years ago

I don't quite understand the attr_accessible in the model and how it relates to strong parameters. Can we go over it in class?

sunrick commented 9 years ago

http://stackoverflow.com/questions/17371334/how-is-attr-accessible-used-in-rails-4

You shouldn't user attr_accesible in Rails 4. attr_accessible is basically for saying what fields are allowed to be mass assigned. In rails 4, we just use strong params for security. ask me or brit if you have questions.