I am new to Rails, and I want to make sure I start off on the right foot. So I need some clarification.
My required register fields will be Username, Email, Password, Birthday, Zip Code.
So I will be running "rails generate scaffold User name:string email:string, birthday:string zip code:string". I will then add a password_digest column to the user_spec file.
My profile fields that I will allow for users to enter after registering from their User CP is: Name, Gender, Ethnicity (option to select more than one), Email, Password, Birthday, Zipcode (not in US then list city, country), education, religion, politics, children, height, does user smoke, does user drink, career and the user about me section.
What I need confirmation is should I be generating scaffold for all of this information (User for the required information, then create another scaffold called UserProfile for the additional profile info) or should I just use columns inside the user_spec.rb for essentially all that information?
spec/models/user_spec.rbto be an Rspec test for theUsermodel found inapp/models/user.rb. If you start using Rspec to test your code (and you don't have to use Rspec, but you should test) and you're using names like*_spec.rbelsewhere, you might find those names confusing. - pjmorse