-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fully complete I hope #3
base: main
Are you sure you want to change the base?
Conversation
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.
Cant add post. Might want to try calling authorize in PhotosController and updating PhotoPolicy.
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.
Unable to add a photo.
something to note: In production commented code is okay but before pushing to production you want to remove any uncommented / unused code.
def photo_params | ||
params.require(:photo).permit(:image, :comments_count, :likes_count, :caption, :owner_id) | ||
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.
having comments in development but when pushing to production you want to remove any unused / commented code
This is cool but its going to app dev. Other than that, you chillin ~with-rizz |
No description provided.