07 Sep '13, 12am

Array#to_sentence: awesome! #rails

Converts the array to a comma-separated sentence where the last element is joined by the connector word. Options: :words_connector - The sign or word used to join the elements in arrays with two or more elements (default: “, ”) :two_words_connector - The sign or word used to join the elements in arrays with two elements (default: “ and ”) :last_word_connector - The sign or word used to join the last element in arrays with three or more elements (default: “, and ”)

Full article: http://apidock.com/rails/v3.2.8/Array/to_sentence

Tweets

Recommended Path for learning Ruby for Rails Tags: #ROR #RubyOnRails #Ruby #NewbieDev

Recommended Path for learning Ruby for Rails Ta...

newbiedev.com 06 Sep '13, 3pm

I have been learning Ruby on Rails since last 2-3 weeks, I've finished first two chapters from michael hartl's book, and I...