Revision: 28909
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 16, 2010 03:32 by insanedreamer
Initial Code
class Object
def gethtml(options = {})
url=app.url_for(options)
app.get(url)
puts app.html_document.root.to_s
end
end
Initial URL
Initial Description
Add this to .irbrc.
Allows the following in console:
> gethtml('/login')
=> HTML of whatever page is generated by /login
Initial Title
Fetch a page from your site from console
Initial Tags
rails
Initial Language
Rails