0

This week, I’m dreaming of a nice application mailer that integrates with Ruby on Rails. Specifically, I want something like Campaign Monitor, but without the metered costs so that I can be a little more free to send emails to my users. Most of the applications I have built recently require that I send emails [...]

Continue Reading

Using acts_as_paranoid in your Rails app

Published on 18 July 2007 by James in Ruby

0

acts_as_paranoid (“AAP”) is a Ruby on Rails plugin that does not delete the row when destroy() is called. Rather, it sets a deleted_at field to a non-null value. The find() method is modified to skip any deleted records, thus making it easy to find only those rows that are considered active. You can locate previously [...]

Continue Reading

0

I read an interesting thread on The Business of Software about switching from C# to Ruby on Rails. Here are some of my favorites:
I tried Rails before and it felt like php (editing in Notepad and using command-line tools). When Rails comes up with an IDE like Visual Studio + Intellisense, I’ll consider it.
ZZ
It [...]

Continue Reading

I couldn’t have said it better…

Published on 22 May 2007 by James in Java, Ruby

1

Link: Ruby on Rails commercial (1 of 4)
[tags]Ruby on Rails commercial, Ruby, Ruby on Rails, Java[/tags]

Continue Reading

0

If you need to render ERB markup that is stored in a database or a string, I discovered an easy way (though finding it was a little harder). I found a tip via a Robby On Rails blog post, which led me to the ticket he opened with a patch and a comment from the [...]

Continue Reading

Problems with rubygems 0.9.3

Published on 13 May 2007 by James in Ruby

0

After about 2 years of using Rails, I realized that I haven’t updated my rubygems installation since I first started. I started to upgrade by downloading rubygems 0.9.3 and running the setup.rb and I encountered the following error:
hook C:/downloads/rubygems-0.9.3/rubygems-0.9.3/./post-install.rb failed:
install directory # not absolute

Since I work on Windows, the various forum posts didn’t help me [...]

Continue Reading

More Soap4r Fun

Published on 02 May 2007 by James in Ruby

0

In the continuing saga of making soap4r work under Rails, I’ve found another issue that needs to be noted. Under some operating systems, the following exception was being raised:
soap4r-1.5.5.20061022/lib/xsd/xmlparser/parser.rb:33:in `create_parser’: You have a nil object when you didn’t expect it! (NoMethodError)
If you see this error, there is a Google Groups discussion that documents the fix. [...]

Continue Reading

Soap4r and Rails

Published on 18 April 2007 by James in Ruby

8

I recently wrapped up a short project bridging a Rails application to the Lyris ListManager API. One of things I had to do was use soap4r to support client calls over SOAP to the ListManager services. I the midst of the development, I encountered the following problem:
NameError: uninitialized constant SOAP::Mapping::EncodedRegistry
While I found some support for [...]

Continue Reading

DSLs, BNLs, and Ruby

Published on 09 August 2006 by James in Ruby

0

Jay Fields of ThoughtWorks has started a great series on Domain Specific Languages, and specifically, Business Natural Languages. The post I am particularly fond of is “BNL 03 – The Solution”, where he demonstrates how to take a BNL with the following format:

apply bonus of the total profit times one percent if the current month [...]

Continue Reading

Rails to be shipped on OS X 10.5 (Leopard)

Published on 08 August 2006 by James in Ruby

0

I have to admit, Apple is really learning how to market successfully to developers. Think about how we all felt about Mac a few years ago (“Mac is for graphic designers”) vs. today. While Microsoft has been busy trying to earn back our trust, Apple has been continuing to follow the Guy Kawasaki marketing pattern [...]

Continue Reading