Skip to content
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

Open
wants to merge 319 commits into
base: rest/master
Choose a base branch
from
Open

Rest/master #16

wants to merge 319 commits into from

Conversation

TammyHer
Copy link

No description provided.

rileslovesyall and others added 30 commits January 8, 2016 13:04
OAuth Dev Portal Created, FontAwesome added
now only the user sees the search bar if they're logged in
We can follow creators :-)
@sallyamoore sallyamoore assigned sallyamoore and unassigned vikshab Jan 19, 2016
if creator.nil?
flash[:error] = "Failed to follow"
else
if !@current_user.creators.include?(creator)
Copy link

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

@sallyamoore
Copy link

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:

  • Avoid nested conditionals.
  • Watch your spacing (space after every end) and indentation.
  • Avoid double negatives. Instead of if [email protected]?, if @thing.
  • More comments!!! Always be commenting!

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.

7 participants