December 2010
1 post
cucumber, webrat visit method triggers undefined...
Cucumber weird errors today when I was running my cuke features on a Rails app I had exactly the same problem you had. undefined method `match’ for #<Array:> (NoMethodError) This was a fresh install, the same features were running fine on my office workstation. These are the gems of my Rails (2.3.4) app [1]: And after two hours of hammering my head, and right before deciding to stop...
May 2010
1 post
1 tag
RVM warning: getc is obsolete; use STDIN.getc...
I had a message hanging rack and rails install on my machine (osx 10.5.8) today:
.rvm/rubies/ruby-1.8.7-p248/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:254: warning: getc is obsolete; use STDIN.getc instead
somehow installing rspecv solved it, here’s what I’ve done:
http://gist.github.com/404492
April 2010
2 posts
1 tag
delete directories with git-svn
Sometime when you remove directories like:
vendor/gems/acts-as-taggable-on-2.0.0.rc1
git leaves the empty directories behind.
When you work with git svn this can leave the svn repository in an incongruous state. You can remove empty dir during svn dcomit via:
git svn dcommit —rmdir vendor/gems/acts-as-taggable-on-2.0.0.rc1
which I think is the only way to undo something that is already...
1 tag
paperclip 2.3.1.1 validates_attachment_presence...
today I had a paperclip validation error:
/vendor/gems/paperclip-2.3.1.1/lib/paperclip.rb:284:in `validates_attachment_presence’: You have a nil object when you didn’t expect it! (NoMethodError)
but the image was there, and I really didn’t get what the problem was.
I am glad I commented it out and worked on something else. After a bit I had a second look and I found out the...
March 2010
1 post
1 tag
revert a previous version of a file via git
So, you want to roll back a file change in GIT.
check on which revision the change was introduced with a bit of:
git log
and double check with:
git show 0a9462908bbf14a3c68bf4a0d49f9770477ad068
checkout that file version before the found revision:
git checkout 3abac75f9eaa63bd5ab7b63457fc9fb570b34039 — db/seeds.rb
it’s now ready to be added and committed.
May 2008
3 posts
5.9 inches of pumping trainor
– Tim Trainor said in the office
1 tag