Created
January 21, 2013 16:54
-
-
Save lcowell/4587410 to your computer and use it in GitHub Desktop.
redering tags in rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "rubygems" | |
| require 'rails/all' | |
| class MyApp < Rails::Application | |
| config.active_support.deprecation = :log | |
| end | |
| class MyView | |
| include ActionView::Helpers::TagHelper | |
| end | |
| MyApp.initialize! | |
| view = MyView.new | |
| view.tag("img", :src => "horse_apples.jpg") # => "<img src=\"horse_apples.jpg\" />" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment