-
Notifications
You must be signed in to change notification settings - Fork 235
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
Laila #221
base: main
Are you sure you want to change the base?
Laila #221
Conversation
end | ||
|
||
get '/peeps/new' do | ||
erb :"new" |
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.
keep quotation marks consistent
erb :"new" | ||
end | ||
|
||
post '/peeps' do |
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.
I would try and keep your route naming consistent, as above you are getting '/peeps/new/' I would also post 'peeps/new' here as this post is creating a new peep.
end | ||
|
||
def self.all | ||
if ENV['ENVIRONMENT'] == 'test' |
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.
This if else statement is going to be required in any function in this class and its already adding a lot of bloat just being used twice, could this be extracted into its own function?
This a nice solution, well done! You have great test coverage and your routes are mostly tidy. I have left a couple of comments where there are some small things that could be improved. Please let me know if you have any questions about any of it and we can chat! |
Your name
Please write your full name here to make it easier to find your pull request.
LAILA GHARZAI
User stories
Please list which user stories you've implemented (delete the ones that don't apply).
README checklist
Does your README contains instructions for
Here is a pill that can help you write a great README!