-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Backend] Feat: Movies Catalog #13
Conversation
t.string :director | ||
t.string :writer | ||
t.string :title | ||
t.string :producer | ||
t.string :production_company |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From this list, I think only title
is not an array, yes? Let's leave this as it is and discuss this in another ticket.
def movie_not_found | ||
render json: { error: "Movie not found" }, status: :not_found | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use a Rails Concern to delegate the error handling.
TODO