This week, Cloud Foundry Developer Advocate, Andy Piper, is featured in our Pivotal people series. Learn more about Cloud Foundry from an insider’s view as well as Andy’s role in Community Engineering, responsibilities with developer advocacy, his journey to Pivotal, and more. Be sure to check out Andy speaking at SpringOneG2X Santa Clara, CA (September 9-12). He will be presenting “Building Spring Applications on Cloud Foundry.”
Helps undefined method `fields' for nil
We keep getting this error across multiple projects & machines, with different versions of the pg gem and the PostgreSQL server, with varying consistency. Switching the tests to sqlite seems to fix it.Failure/Error: Unable to find matching line from backtrace ActiveRecord::StatementInvalid: NoMethodError: undefined method `fields' for nil:NilClass: SELECT "locations".* FROM "locations" WHERE "locations"."id" IN (11, 10, 5, 4, 1, 3, 2)
It appears that PG::Connection#async_exec is returning nil for some queries.
Read more »
I recently started working with OS X Lion at home and started researching the best way to get a Ruby on Rails environment up and running quickly.
After a little searching, I found a really well written article by Frederico Araujo over at http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/.
Fred's blog post walks you through step by step getting Homebrew, RVM, Ruby 1.9.2 and MySQL up and running.
It worked perfectly.