I'm new to rails, and am trying to create a simple credit card managing application. I want to have a basic authentication, where the user is presented with a simple form:
- 4 input fields, each for 4 numbers of the credit card
- 1 input field for the pin number.
This search form should be in a separate page (as per the application specifications), and then it should redirect to the page with the details of the card (if found).
I'm still getting the hang of controllers and their actions, and am not sure about creating a new action in the cards_controller and its respective view, only to display the form and then manage the search in the show action. I don't want to got through creating a whole search controller as some authors suggest, and instead keep it simple. What would be a good restful approach to this situation?