191–192 of 192 results for ruby on rails
January 5, 2009 - Here’s a quick tip that came out of a code review we did last week. One easy way to add caching to your Ruby app is to memoize the results of computationally expensive methods: def foo @foo ||= expensive_method end The first time the method is called, @foo will be nil, so…
Generate Unique Identifiers With Postgres Sequences
April 27, 2016 - Need a unique identifier? Postgres sequences have you covered.