Skip to main content

Posts

Showing posts from July, 2014

Ruby On Rails Best gems for Implementation

Ruby On Rails Best gems for Implementation?


CarrierWave

    Upload files in your Ruby applications, map them to a range of ORMs, store them on different backends. It works well with Rack based web applications, such as Ruby on Rails.


Kaminari

    Kaminari is a Scope & Engine based, clean, powerful, customizable and sophisticated paginator. Kaminari supports multiple ORMs (ActiveRecord, Mongoid, MongoMapper) multiple web frameworks (Rails, Sinatra), and multiple template engines (ERB, Haml).

HAML

    Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML that's designed to express the structure of XHTML or XML documents in a non-repetitive, elegant, easy way, using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.


Authlogic

    A simple, unobtrusive model based Ruby authentication solution. Authlogic is very flexib…

Rails Date Formats

Rails Date Formats
%a - Theabbreviatedweekdayname (''Sun'') %A - Thefullweekdayname (''Sunday'') %b - Theabbreviatedmonthname (''Jan'') %B - Thefullmonthname (''January'') %c - Thepreferredlocaldateandtimerepresentation %d - Dayofthemonth (01..31) %H - Houroftheday, 24-hourclock (00..23) %I - Houroftheday, 12-hourclock (01..12) %j - Dayoftheyear (001..366) %m - Monthoftheyear (01..12) %M - Minuteofthehour (00..59) %p - Meridianindicator (''AM''or''PM'') %S - Secondoftheminute (00..60) %U - Weeknumberofthecurrentyear, startingwiththefirstSundayasthefirstdayofthefirstweek (00..53) %W - Weeknumberofthecurrentyear, startingwiththefirstMondayasthefirstdayofthefirstweek (00..53) %w - Dayoftheweek (Sundayis0, 0..6) %x - Preferredrepresentationforthedatealone, notime %X - Preferredrepresentationforthetimealone, nodate %y - Yearwithoutacentury…