Im creating a model with the line
rails g scaffold contact firstname:string lastname:string email:string
But should the attributes be like
first_name:string
instead?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Conventions aren’t set in stone, but it’s good to follow them.
And yes, widely spread convention for attribute names is snake case.