Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

you could use pretty much anything.

rails would be

    def status
      render(text: params[:status], status: params[:status])
    end


interestingly, i believe your sample code would, in all but the latest version of Rails, leave someone open to some of the Rails CVEs that just got announced yesterday :)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: