Status 303 plugin documentation

11 views
Skip to first unread message

burl...@gmail.com

unread,
Nov 1, 2021, 2:10:01 PM11/1/21
to Roda
Hi Jeremy,

I just wanted to let you know, I came across a place where the status_303 plugin is very helpful. The docs say "The author knows of no cases where this actually matters in practice," so I thought you might like an example where this plugin is actually needed :)

If you use the Inertia framework on the front end, it expects 303 status for non-GET redirects, and doesn't work correctly without them. I'm using Inertia on the front-end and Roda on the backend, and after having written a dozen or so `r.redirect "...", 303`, I was happy to stumble across the status_303 plugin which cleaned that all up perfectly so I don't have to remember to do it anymore.

Cheers, and thanks for your enormous contributions to Ruby!

- Andrew 


Jeremy Evans

unread,
Nov 1, 2021, 2:21:31 PM11/1/21
to ruby...@googlegroups.com
Thanks for pointing that out.  I updated the documentation: https://github.com/jeremyevans/roda/commit/2ab6f249bf86b670f7c2f9185dc91c97e0d1866a

Jeremy
Reply all
Reply to author
Forward
0 new messages