Created
March 6, 2014 03:00
-
-
Save brentsowers1/9381417 to your computer and use it in GitHub Desktop.
application_helper
This file contains 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
module ApplicationHelper | |
def inner_helper | |
str = content_tag(:p, "inside p content tag") | |
str << "a space should be between the following words: hello" | |
str << " " | |
str << "world" | |
str << "more <span style=\"font-weight:bold;\">dirty HTML</span>" | |
str << content_tag(:div, "inside div content tag") | |
end | |
def outer_helper | |
str = "<div>about to call inner_helper method</div>" | |
str << inner_helper | |
str << "<p>outside of inner_helper method in p tag</p>" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment