Free as in Time

About Me | About this Blog

Creating a Default Rails Layout

February 20th

I’d either never picked up on this or totally forgotten it, but I ran across it while reading Ajax on Rails:

If you create a layout file under app/views/layouts/ called application.rhtml, Rails will pick that up as a default layout for your entire application, assuming you haven’t created other layouts already.

By default Rails looks first for a layout template with the same name as the current controller with the extension .rhtml. If it can’t find this layout, it goes looking for application.rhtml layout.

Somehow, I’d gotten in the habit of creating [...]

Tags:   · · No Comments

Talking about WordPress

February 12th

Weblog Tools Collection just posted a collection of WordPress Lingo. It’s pretty short, but hits some of the bigger stuff. Some day I’d like to expand on it.

Tags:   No Comments

Canadian Rails Hosting

February 6th

Sure it’s an ad, but it’s interesting and possibly useful:
Ruby on Rails Web Hosting for Canadian Sites

Tags:   1 Comment

25 Ruby and Rails Cheat Sheets

February 6th

A cheat sheet for every occasion:
Ruby and Ruby on Rails cheat sheets.

Tags:   · No Comments

Rails 2.0.2

January 9th

Dreamhost (at least the server we use) has upgraded to Rails 2.0.2, and I’ve also done so in my local development environment.

Next up, upgrading some sites/projects, both for us and clients.

To see what’s new in this release, check out the Rails blog.

Tags:   No Comments

WordPress: Modifying the Excerpt

November 12th

I was having some problems with the display of post excerpts on category archive pages. WordPress (2.3.1) was stripping out HTML tags, including links and scripts. This led to at least two problems.

First, short posts, where my only intention is to post a link with a little note, are completely visible in the excerpt view, yet they didn’t include the link. The end result is that these posts look like mistakes. Second, my Library and Wishlist categories looked equally silly and broken without the scripts that pull in information [...]

Tags:   1 Comment

WordPress: Removing Extra HTML from a Category Description

November 9th

I ran into a little problem today: some piece of code, somewhere in the bowls of WordPress, or perhaps in my theme, was adding extra <p> tags to my category descriptions. This meant that when I retrieved a category description using the category_description() function, the result was wrapped in paragraph tags.

Tags:   4 Comments