Date and Time Helpers in Rails

Just for reference http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M001695

This post was created about <%= time_ago_in_words @post.created_at %> ago

Related posts:

  1. Custom Date Formats for Your Rails Application
  2. Email Obfuscation and Extraction from Text with Rails
  3. Generate MySQL Datetime Type Using PHP Date() Function
  4. Destroy Children In Rails 2.3
  5. Rails Helper to Remove Leading Zero in 12 Hour Time Format
This entry was posted in Ruby on Rails and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>