ActiveRecord::SessionStore::Session.find
from http://po-ru.com/diary/how-to-update-rubygems-to-a-specific-version/
RubyGems can update itself to the latest version:
gem update –system
However, you always get the newest version. This may be a problem if you’re trying to replicate a known-good environment: for example, the output format of `gem list` in RubyGems 1.3.7 breaks Chef 0.8.16 in certain circumstances. 1.3.6 is fine.
Here’s [...]
from http://markconnell.co.uk/posts/2010/02/rails-3-routing-examples
Rails 3 introduced a new routing DSL that is a little bit different from the Rails 2 version. This quick guide covers a few examples of the new routes, and how they compare to Rails 2.
Simple routes
Create a basic route that will respond to http://localhost:300/hello_world
# Rails 2: map.connect ‘hello_world’, :controller [...]
from: http://railscash.blogspot.com/2010/06/undefined-method-deepsymbolizekeys-for.html
check you locale files if the parent locale is there.
for example in en.yml file, it may have en: as fist active text
from: http://www.robertsosinski.com/2008/12/21/understanding-ruby-blocks-procs-and-lambdas/
Understanding Ruby Blocks, Procs and Lambdas
Blocks, Procs and lambdas (referred to as closures in Computer Science) are one of the most powerful aspects of Ruby, and also one of the most misunderstood. This is probably because Ruby handles closures in a rather unique way. Making things more complicated is that Ruby has [...]
from: http://blog.crowdint.com/2011/04/13/turn-jquery-effects-off-for-testing.html
We, at Crowd Interactive, always go with the TDD + BDD approach when coding new applications.
The usual, we use RSpec for TDD, we use Cucumber for BDD, although lately, I’ve been using Steak in place of Cucumber and so far I am loving it.
When you are using Capybara [...]
From: http://stackoverflow.com/questions/2458632/how-to-test-a-confirm-dialog-with-cucumber
Code:
page.evaluate_script(‘window.confirm = function() { return true; }’) page.click(‘Remove’)
from http://netkas.org/?p=127
August 14th 2009 Posted to Snow Leopard
It looks like not all users understand about 64-bit support in snow leopard.
So, here is how it works:
on all Macs, except xserve, system boots by default 32-bit kernel.
This kernel can run 64-bit apps justs fine [...]
from https://rvm.beginrescueend.com/rvm/best-practices/
RVM Best Practices
Want to use RVM the way Wayne E. Seguin intended? The following is a collection of tips / best practices that have proven to be effective in making development easier while using rvm.
The List No. 1 – Use project rvmrc files.
A project-specific rvmrc makes it easy to automate [...]
from http://willbryant.net/software/mac_os_x/postgres_initdb_fatal_shared_memory_error_on_leopard
When doing the post-install setup of postgresql default database using initdb, you may hit this error:
FATAL: could not create shared memory segment: Cannot allocate memory DETAIL: Failed system call was shmget(key=1, size=1646592, 03600).
You can either change the postgresql configuration to use less shared memory, or increase the system setting.
I suggest the [...]
-
Articles
- October 2012
- May 2012
- April 2012
- March 2012
- February 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta