Ruby Developer Notes Useful things

8Jun/101

Получить HTML без запуска сервера

Нашел замечательный способ получить содержимое HTML страницы проекта на рельсах из консоли без запуска сервера:
[cc lang="ruby"]
require 'config/environment'
require 'console_app'

app.get '/events'
body = app.response.body
[/cc]
Надо будет запомнить.

Comments (1) Trackbacks (0)
  1. 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.


Leave a comment

No trackbacks yet.