-
-
Save amcaplan/4c382886cc1e67904291 to your computer and use it in GitHub Desktop.
Helper Method to Generate Content Divs
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 MealsHelper | |
def content_div(id, partial_name, extra_class = nil, f) | |
content_tag :div, (render partial: partial_name, locals: {f: f}), | |
class: "content #{extra_class}", id: id | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment