3 ms·
Rails is not assuming that it's a POST. The conditional logic in the controller explicitly checks for a get, and then else's otherwise. This is an unfortunate c
by ryanisnan 7y ago
Rails is not assuming that it's a POST. The conditional logic in the controller explicitly checks for a get, and then else's otherwise. This is an unfortunate consequence of not having routing go to specific methods, e.g. `def post():`.
- tptacek 7y agoRails routing does go to specific methods ordinarily. What's funny here is, apparently, .get? used to return true for HEAD requests.