rubyquicktips's profile picture. Random Ruby and Rails tips.
Visit the website to submit your own tips.

Ruby Quicktips

@rubyquicktips

Random Ruby and Rails tips. Visit the website to submit your own tips.

Using ActiveRecord to query for times within a range tmblr.co/ZmLjSyKnk0DJ


Try out your helpers in the console tmblr.co/ZmLjSyKg1t5t


Creating regular expressions with r{} literals tmblr.co/ZmLjSyJvobLd


Create a hash from an array with Hash[*arr] tmblr.co/ZmLjSyJp4Ey3


Rails' index_by: the easy way to convert an Array to a Hash tmblr.co/ZmLjSyJXILEA


Convert a number string in any base to a decimal number tmblr.co/ZmLjSyJTk_UP


Two Ruby tricks using method chaining and Procs tmblr.co/ZmLjSyJ3QEAM


Using Hash as Recursive Function with Memoization tmblr.co/ZmLjSyINSeV9


Convert between number bases easily tmblr.co/ZmLjSyHege3g


Some Array magic using transpose, map and reduce tmblr.co/ZmLjSyHZ5kXM


Quick shortcut to load a SQL file in Rails tmblr.co/ZmLjSyHGzgEL


此帳戶目前尚未追蹤任何人

United States 趨勢

Loading...

Something went wrong.


Something went wrong.