August Lilleaas

"Lili-aws", not "Lilly-ass"

« Back to posts
  • Viewed
    times
June 5, 2010

Lambdas in locales in Rails 3

  • Edit
  • Delete
  • Tags
  • Autopost
A minor change to lambdas in locales: the key is now being passed as the first argument. What used to be `lambda {|c, path| "Do it: " + c.link_to("Thing",  path) } `  is now  `lambda {|key, c, path| "Do it: " + c.link_to("Thing",  path) } ` .
  • 0 responses
  • Like
  • Comment