Ever wanted to try out any of Rails’ view helper methods in the console? Just include ActionView::Helpers after starting the Rails console:
include ActionView::Helpers # => Object text_field(:post, :title) # => "<input id=\"post_title\" name=\"post[title]\" size=\"30\" type=\"text\" />"
You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.