About the blog
This is the blog by the Ruby on Rails developers behind Mynewsdesk.
Read more about us →
Visit Mynewsdesk →Follow us on Twitter
Search
Blogroll
-
Recent Posts
Tags
@media Analytics bit.ly data attributes design developer e-commerce editor gchartrb git googlecharts Google Charts API google charts on rails hCard html5 i18n javascript jQuery JSON litespeed Microformats newsdesk Operator Optimus passenger plugin plugins pluralization postgresql RDFa Rich snippets ruby Ruby on Rails Semantic web SEO Services swedish swedish_pluralize The environment tip Transformator translate usability Validator XML
Tag Archives: tip
The “returning” method explained
This one you will find all over the Rails code. The “returning” trick is a really neat way to refactor ugly patterns, such as this one: object = [] object << “foo” if bar? object Into this: returning [] do … Continue reading
Subscribe