Skip to content

Create Class And Controller Validations#6

Open
ASPhillips8 wants to merge 5 commits into
learn-co-curriculum:mainfrom
ASPhillips8:working-branch-asp
Open

Create Class And Controller Validations#6
ASPhillips8 wants to merge 5 commits into
learn-co-curriculum:mainfrom
ASPhillips8:working-branch-asp

Conversation

@ASPhillips8
Copy link
Copy Markdown

Updated Gemfile sqlite version. Created Author class validations for name presence and email uniqueness. Created Post class validations for title presence, length of content and category inclusion. Updated authors controller create action to send back error message if author is invalid. Updated posts controller update action to return error message if invalid updated post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants