On the show page for a deck there should be a link to edit it if you own the deck.
Clicking the link should take you to a page with a Title search box for looking up cards, submitting that form will make a GET request to the edit page with the card title as a query parameter. The edit method in the Deck controller will run the same where query as found in the Searches controller, display a short listing of card results if any. Each result should have a button for adding the card to the deck.
On the show page for a deck there should be a link to edit it if you own the deck.
Clicking the link should take you to a page with a Title search box for looking up cards, submitting that form will make a GET request to the edit page with the card title as a query parameter. The
edit
method in the Deck controller will run the same where query as found in the Searches controller, display a short listing of card results if any. Each result should have a button for adding the card to the deck.