Making a web page with ruby without rails

前端 未结 4 1500
庸人自扰
庸人自扰 2020-12-14 03:38

I´m looking for a way to do simple ruby code without rails. I´m coming from PHP world, and sometimes, I just build a page with a Mysql connection, run a query and show resul

4条回答
  •  [愿得一人]
    2020-12-14 04:32

    The simple answer is sinatra. Or camping.

    However, the slightly longer answer is that Ruby doesn't follow the same execution model as PHP, so the development model of "stick some code in a file to be interpolated by the web server on every request" isn't as well supported.

提交回复
热议问题