Closed bcardarella closed 3 months ago
I'm working on this, but if anyone else is, I'm fine for giving it to someone else. :)
@greven until we hit 100 commits we're only accepting 1 commit per user to encourage wider participation :)
Ah I didn't know that. That's a good idea! I'll bow out then! :)
Depends on #3 and #4
A "New" button should be on the home page.
If you are unauthenticated it will prompt you to authenticate with GH. The
/new
route should be cached so that after auth is complete it will route you there automaticallyOn
/new
The follow form fields:When before db insert the
slug_id
should be populated with:If the name is "diff patch library" the slug will be "diff-patch-library"
If another lib with the same
slug_id
exists then find the last one and increment by 1 so in this case it would becomediff-patch-library-1
the next timediff-patch-library-2
and so onRoute to
/diff-patch-library
after creation.The
wanted.user_id
should be the id of the user that created the record