I am building a collaborative story app in rails. It is a simple application that will have a User controller, a story controller, then a model for each along with a join table story_user.
Users will be able to start a new story or add to an existing story created from another user.
I'd like to put the users in groups according to age. For ex: 5 - 9, 10 - 13, 14 - 17, 18+. So, only appropriate stories appear for the current_user.
I know I have to use a validation for birth_date but I'm not sure how. Also, can I change the styling of the story show page based on the age of my user? If so, where would that 'if' statement go in the rails folder structure?
Thanks in advance.ruby-on-rails