Problem statement
When a given user tries to RSVP to an event they’re already registered for we should display a flash message with the following content:
User has already registered for this event

Steps to reproduce
- Start your Rails server with
bin/dev command
- Create an event at http://localhost:3000/events/new
- Create a user at http://localhost:3000/users/new
- Click RSVP on the event page twice
How to fix it
I have added unit tests to help guide you in the implementation in the duplicate_rsvp_message development branch.
I'd be happy to review your implementation when I have time. Please open a pull request following these steps:
- Follow this guide to setup your forked repo
- Checkout a development branch
git fetch upstream
git switch -c duplicate_rsvp_message upstream/duplicate_rsvp_message
- Run all tests to see what's failing with
bin/rails test
- Make your changes to make tests pass
- Open a pull request and tag me for review
Problem statement
When a given user tries to RSVP to an event they’re already registered for we should display a flash message with the following content:
Steps to reproduce
bin/devcommandHow to fix it
I have added unit tests to help guide you in the implementation in the
duplicate_rsvp_messagedevelopment branch.I'd be happy to review your implementation when I have time. Please open a pull request following these steps:
bin/rails test