Open gatorjuice opened 8 years ago
Hello! I'm a rails newbie and I have some questions :p 1 - Why don't you use strong paramters? At update and create methods you call each attributes instead use contact_params Reference link: http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html 2 - Why call .html.erb instead only page name? Like render 'new' by example?
Great questions. We're just being explicit for educational reasons. Rails has a thousand and one shortcuts in it and if you don't learn what's happening explicitly, you may have challenges in the future.
On Sunday, March 27, 2016, victorsilent notifications@github.com wrote:
Hello! I'm a rails newbie and I have some questions :p 1 - Why you don't use strong paramters? At update and create methods you call each attributes instead use contact_params Referenc link: http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html 2 - Why call .html.erb instead only page name? Like render 'new' by example?
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/zeinamakky/contact-app/issues/1#issuecomment-202170818
Sent by Jamie's pocket computer
Methods look solid
What you have here looks pretty good, I'd get rid of your commented out section. You want to eliminate code you aren't using and rely on quality git backups for reference and back tracking.
Read my comments in your code about attr_reader