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: books · Rails · tipsNo Comments
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: WordpressNo Comments
Sure it’s an ad, but it’s interesting and possibly useful:
Ruby on Rails Web Hosting for Canadian Sites
Tags: Rails1 Comment
A cheat sheet for every occasion:
Ruby and Ruby on Rails cheat sheets.
Tags: Rails · RubyNo Comments
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: RailsNo Comments
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: Wordpress1 Comment
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: Wordpress4 Comments