• CONTACT

TheTechnologist.TV

  • the column
Home › Blogs

Wolfram Arnold's blog

Nested Attributes and how much fun it is to give a talk with a live demo

Wolfram Arnold — Wed, 07/22/2009 - 07:29

Tonight, I presented at the East Bay Ruby Meetup on invitation of Jon Seidel, the host, a talk about a very cool new feature in Rails 2.3.

  • Entertainment
  • Jon Seidel
  • Josh Susser
  • Paul Lundahl
  • Ruby Meetup
  • Read more
  • Comments

On Improper Gestures or How to Not Recruit Rails Developers

Wolfram Arnold — Sat, 06/27/2009 - 06:15

When we decided to hire to some help for the design and copy writing on our web site, I was particularly pleased with the hunting references Anita came up with for our recruitment services at RubyFocus. What does it take to hire a Rails Developer?

  • API
  • designer
  • recruiter
  • Technology
  • Ward Cunningham
  • Read more
  • Comments

alias_attribute vs. alias_method for aliasing ActiveRecord attributes

Wolfram Arnold — Tue, 06/16/2009 - 02:29

I've just recently run into a situation where I wanted to add an alias for an accessor method that ActiveRecord creates on the fly.

As you know, if you have a column in your schema, then ActiveRecord will automatically set up the accessor methods, like so:

Now, if you want to access the user's name also by, say, "display_name", then you might ordinarily think you could just:

alias_method :display_name, :name

  • Technology
  • Read more
  • Comments

Rails 2.0 with Ruby 1.8.7

Wolfram Arnold — Sat, 05/30/2009 - 02:24

The Ruby 1.8.7 interpreter

$> ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

has a built-in method named "chars" which clashes with Rails 2.0's String extensions. The problem does not happen for Rails 2.1 or later.

The fix is simple. Add a file to config/initializers/ruby-1.8.7-string-workaround.rb as follows:

  • interpreter
  • Linux
  • Read more
  • Comments

RSpec View testing: Mocking helpers vs. mocking controller methods

Wolfram Arnold — Tue, 05/12/2009 - 01:35

RSpec::Rails (I'm using version 1.2.2 as of this writing) has a really cool feature to test view templates. This is one of the features where RSpec really has a leg up on standard Rails functional tests.

You can test the view templates without the controller actions running, which has the nice side-effect that your actions and your views become less tightly coupled—and you're doing BDD, right?

Here is an example of testing a layout, you can do this without even relating to an action or a view template:

  describe 'layouts/application' do

    before(:each) do
  
  • controller
  • gif
  • rails
  • rspec
  • Read more
  • Comments

The making of my first video

Wolfram Arnold — Thu, 03/19/2009 - 01:31

When I first started talking with Eric about founding RubyFocus, I've always had a strong sense of the story and beliefs I held that I wanted my clients to learn. I felt that just going around talking is one way, but it's one-on-one, and it also is just talking.

  • advisors
  • Europe
  • Technology
  • YouTube
  • Read more
  • Comments

AUDIT THE FED

Syndicate content

Latest

Generative Art From The Math of The Rodin Vortex, The Fibonacci Spiral, and The Gielis Superformula
18 hours 6 min ago
An Historic Press Release
2 weeks 3 days ago
Tahrir Tilt Shift
2 weeks 3 days ago

Below The Fold

On "The Ascent of Money", A BBC Series on The History of Finance
6 weeks 3 days ago
The History of All Earth Ever, as A Drop of Water on The Sun (abstract)
6 weeks 3 days ago
FTC Deals FaceBook The Largest "Hump On The Wrist" In Silicon Valley History
8 weeks 18 hours ago
In The 6 Months Since I Closed The Lab, 11|3L3V3N Happened
10 weeks 2 days ago
When Did I Become Dr Who?
38 weeks 6 days ago
more

Active Topics

  • Technology
  • Google
  • Android
  • iPhone
  • Entertainment

AUDIT THE FED

  • the column