Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts Tagged Rails

Fixing Textmate Test Issues - `blank_slate_method_added’: stack level too deep (SystemStackError)

If you are getting long, recursive stack traces like the following when trying to run a test/spec from within Textmate:
PLAIN TEXT
RUBY:

/opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in `blank_slate_method_added': stack level too deep (SystemStackError)

from /opt/local/lib/ruby/gems/1.8/gems/builder-2.1.2/lib/blankslate.rb:84:in `blank_slate_method_added'

from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:86:in `method_added'

from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/builder.rb:111

from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'...

The stack goes on for many more lines, and your tests always work normally outside of textmate. The issue is [...]


MultiRails 0.0.3 released

MultiRails lets you test your Rails plugin or app against many versions of Rails in one sweep.
rubyforge: http://rubyforge.org/projects/multi-rails/
rdocs: http://multi-rails.rubyforge.org/
svn stable: http://robsanheim.googlecode.com/svn/tags/stable/multi_rails (gem is released from here)
svn trunk: http://robsanheim.googlecode.com/svn/trunk/multi_rails
mailing list: http://groups.google.com/group/multi_rails
Description
MultiRails [...]


Minor Gotcha with ActiveRecord query methods

Stumbled upon a gotcha with the ActiveRecord query methods you get for free, along side the normal attribute accessor methods. Its a "gotcha" in that I "gotcha" read the docs and Rails source a bit more in depth before making assumptions about how Rails works, but I'd rather pretend the fault is with Rails [...]


Relevance is looking for two super ninja hackers

My company, Relevance is looking to hire two more full time people. We are based in Chapel Hill, and we want everyone to be colocated or open to relocation.
In my short tenure here at Relevance (little over three months), I can safely say that this is the closest I've ever been to my perfect [...]


Understanding the Rails command

I ran a few quirks during the course of working on MultiRails and testing against the Rails 2.0 prerelease.
The first thing was tracking down what Rails version is actually used when you just run the "rails" command. This is important when you have many versions of Rails installed via gems, some of [...]


multi_rails has been released

MultiRails allows easy testing against multiple versions of Rails for
your Rails specific gem or plugin.
Use MultiRails to hook in Rails 2.0 testing in your continuous integration. Still working on Rails 2.0 support? Use MultiRails to see where your test suite falls down against the 2.0 preview releases of Rails.
sudo gem install multi_rails...view the [...]


I’m feeling open sourcey…

Got some open source updates and releases coming soon:

My logic captcha plugin for Rails, BrainBuster, has recently been globalized by one creative user. I'd like to incorporate something into the next release to make it easy for people to extend the plugin in ways like this, but I'd like to avoid adding a "lang" [...]


Less Magic, Please

My development style tends towards less and less metaprogramming and magic these days. Its not for lack of ability or lack of capable coworkers. I work with some pretty sharp people, and I know they can grok whatever sort of voodoo method_missing module_eval mysticism I can throw at them. But lately I [...]


Overriding setup in Rail’s test_helper - impossible?

Is there a way that will just work for adding common setup code to test_helper? None of the below work:
PLAIN TEXT
RUBY:

# this breaks fixtures in the acts_as_authenticated account_controller_test (but nowhere else, for some reason)...

  def setup

  end

PLAIN TEXT
RUBY:

# this breaks things all over the place

  def setup

     super

  end

PLAIN TEXT
RUBY:

# this [...]


Joining Relevance

I'm happy to announce that I have joined Relevance, a small software shop based in Chapel Hill, NC.
This is going to bring a lot of change for me and my family, one of which is moving across the country from Wisconsin to North Carolina. I love Wisconsin and being close to family, but my [...]


← Before After →