Might be a dumb question, but is there a way to issue http requests directly from the rails console? Those that are POST / GET / PUT / DELETE? Without doing all the routing first?
You can use app.get
and friends:
app.get app.auctions_path # 200
app.post app.auctions_path # 200
The app
variable maps to a ActionDispatch::Integration::Session
so all its methods are available to you, including routes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With