-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rest/master #16
base: rest/master
Are you sure you want to change the base?
Rest/master #16
Conversation
OAuth Dev Portal Created, FontAwesome added
login page buttons added
now only the user sees the search bar if they're logged in
We can follow creators :-)
if creator.nil? | ||
flash[:error] = "Failed to follow" | ||
else | ||
if !@current_user.creators.include?(creator) |
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.
According to the Ruby Style Guide, it is the preferred way to use unless
instead of negative if
conditionals.
Ex:
unless @current_user.creators.include?(creator)
You can find the Ruby Style Guide here
Great work on this project! Yay for APIs!!! Look at all this cool code logic you're using to create awesome things! A few minor things to keep working on:
|
No description provided.