8Jun/101
Получить HTML без запуска сервера
Нашел замечательный способ получить содержимое HTML страницы проекта на рельсах из консоли без запуска сервера:
[cc lang="ruby"]
require 'config/environment'
require 'console_app'
app.get '/events'
body = app.response.body
[/cc]
Надо будет запомнить.
February 23rd, 2017 - 01:58
Also, never feel stupid to share your exepeirnces. It is actually the best thing you can do. Some people do not understand, but i assure you, there are thousands and thousands of people who have had similar experiences.