Skip to content

Instantly share code, notes, and snippets.

@yorzi
Created January 17, 2013 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yorzi/4553084 to your computer and use it in GitHub Desktop.
Save yorzi/4553084 to your computer and use it in GitHub Desktop.
some common used dummy helpers in Rails application.
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