Hi, I’m Emmanuel Hayford. Here’s what caught my eye in Rails this week.
Fix GET+JSON+params in integration tests for API-only apps
params: in integration test helpers was ambiguous for GET requests with as: :json — it wasn’t clear whether params should go in the query string or request body. The original workaround converted GET to POST with X-Http-Method-Override, which broke API-only apps that exclude Rack::MethodOverride. New query: and body: kwargs give explicit control: query: always lands in the URL query string, body: always goes into the encoded request body, and params: keeps its existing behavior unchanged.
get "/search", query: { q: "rails" }, as: :json
post "/search", query: {…













A sneak preview of what the trace looks like.









