-
Notifications
You must be signed in to change notification settings - Fork 234
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
Will M - Chitter #223
base: main
Are you sure you want to change the base?
Will M - Chitter #223
Conversation
@@ -1,9 +1,28 @@ | |||
require 'sinatra/base' | |||
require "./lib/peep" | |||
|
|||
class Chitter < Sinatra::Base | |||
get '/test' 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.
You can probably delete this test route
|
||
class Chitter < Sinatra::Base | ||
get '/test' do | ||
'Test page' | ||
end | ||
|
||
get "/" 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.
nice restful routes
end | ||
end | ||
|
||
def self.sort_by_date |
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.
If you kept working on this and wanted to add a new feature to sort by something other than date, could you refactor this method to be more flexible?
|
||
describe Peep do | ||
|
||
describe "::create" 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.
this should be .create
not ::create
This is a nice solution and it clearly demonstrates the learning objectives around writing to and reading from a db. The next step would be to add filtering – if you had more time, would you know how to get started? |
Your name
William Marshall
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!