Created
January 17, 2013 02:41
-
-
Save yorzi/4553084 to your computer and use it in GitHub Desktop.
some common used dummy helpers in Rails application.
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 dummy_image wxh | |
image_tag "http://dummyimage.com/#{wxh}/999/eee.png",size: wxh | |
end | |
def dummy_paragraph(count = 3) | |
Faker::Lorem.paragraph(count) | |
end | |
def dummy_sentence(count = 7) | |
Faker::Lorem.sentence count | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment