Articles

Caching with Rails Part 1: Page Caching

alt text

Why do it?

There are three types of caching in Rails. In this tutorial we are going to concentrate on Page Caching. Page caching is the simplest and fastest form of caching in Rails. If you want to reduce the amount of times your Rails app hits the database then why not add some page caching.

Upcoming Late 2009 Ruby and Rails Events (With Tickets Ready To Buy)

Here's a list of some prominent forthcoming Ruby and Rails events scheduled through to the end of the year. Only events with tickets ready to buy right now are included - events which have already sold out are not included.

lsrc.png

Learning Ruby Metaprogramming with Shoes!

Waikiki Hotel for $79/night with Free Wifi, Rails Hacker Approved

Aloha!

Our good friend, and fellow Hawaii Rails developer Matt Williams, has located a great hotel option for all visiting attendees for Aloha on Rails, the Hawaii Ruby on Rails Conference. Quoting Matt’s tweet:

Attn @alohaonrails attendees, was at Sands Villa Hotel last week, $72/night. Walking distance, not dumpy, & free wifi http://bit.ly/iPChH

Intridea Helps Bring Traffic Alerts to Twitter

When you search the App Store for Traffic applications, you may see a few that simply aggregate traffic information from the same source. TrafficTweet, an iPhone application that we at Intridea helped to develop for Mobomo, aggregates traffic information from Yahoo and also pulls in traffic information posted to Twitter from other users of the application.

On Scala’s future

Kenneth McDonald posted the following question about Scala’s future in the Scala mailing list:

I thought it would be interesting to find out people’s predictions for how much of the Java market Scala will eventually penetrate. It’s nice to see Scala doing reasonably well so far, so now’s your chance to make a prediction on the future of Scala:

Moved to a new server

This post is really for myself. If you see this, you’re looking at the new server.

August Itineraries – See You There!

Somehow, August is upon us! The Engine Yard Cloud Flex Beta plan is out the door and doing really well, and we can barely keep up with all the great feedback our beta customers are sending our way. Things are just getting better and better every day!

save! > save

Thoughtbot folks have a great article on not expecting exceptions – save bang your head, active record will drive you mad. I’ll admit, just like the poster, I used to use save! in controllers to DRY my code. And have a global rescue_from in application.rb. But over the time, I changed the camp and now I’m fully in that “Don’t expect expectations” camp. Some things are more important that DRYing 3 lines of code.

Finding the Right Job is About Knowing Where You Fit

 Finding the Right Job is About Knowing Where You Fit

I must admit that I was getting a bit worried.

Articles | Rails Fire

Articles

Single Table Inheritance with Rails

What is it?

With single table inheritance you have a base model which inherits from ActiveRecord::Base, then one or more sub-classes, which inherit from the base model.

Single table inheritance is a software pattern described by Martin Fowler. Since (most) databases don't support inheritance, there is an issue when trying to map objects to database tables. This is known as the Object-relational impedance mismatch.

Things I mentioned in my Ruby Nation presentation

I had a great time at Ruby Nation this weekend. After my presentation I got a number of questions asking about things I referenced during the talk. Here’s an attempt to point to some of them. If you weren’t there, you won’t have any context but feel free to follow the links anyway You might find something interesting.

My Book

Bureau of Labor Statistics Time Use Survey

Everything breaks

It’s always interesting how confidant some people are about their code. They assume that, because it works on their machine in dev mode, it will therefore work on the staging server or in production.

Even with full test coverage, things go weird often enough that it’s worthwhile to always check to make sure that things are actually working after a deploy to staging or prod.

Profiling Ruby With Google’s Perftools

Benchmarking, profiling and debugging are all areas where better tool support could really benefit the Ruby community. Built in benchmark library and extensions such as ruby-prof provide us with a minimal level of introspection to help identify the common bottlenecks, but they still fall short of the available tools for the JVM, or other dynamic runtimes.

Memoria: Statistics for Redis

A couple of days ago I setup this blog with Redis as cache container, thanks to my Ruby gem: redis-store.

Now, following the old itch-your-own-scratches rule, I created a little Sinatra statistics web application for Redis statistics: Memoria.

Getting to grips with git - Part 2: Branches and Tags

This is the second post in my Getting to grips with git series. Last time, I covered the basics; this time we’ll explore branches and tags.

Did You Get Your Facebook Username?

I thank Facebook for opening up the land grab at 12:01 EST rather than making me stay up until 3 AM (which I probably would have cause that’s how I roll). I was able to grab robertdempsey, and beat out the other 112 folks with the same name as me. You snooze you lose my friends.

A Quick Chat with Chetan Mittal of Mortar Systems

Chetan Mittal

Satish>> Chetan, could you tell us something about yourself – your background, where you are based?

Rip: A Next Generation Ruby Packaging System - Watch Out RubyGems!

rip.pngEarlier this week, Rip quietly made its way into the world. It's a "next generation" Ruby packaging system, clearly meant to both work around some of the problems with RubyGems and also introduce some fresh ideas of its own.

Community Highlights: Ruby Heroes

This week I’m happy to tell you about a new set of articles which will be appearing here on the Rails blog called “Community Highlights”. This new series will feature people/projects/sites from the Rails community that may deserve a little extra recognition.

This week, we’re going to start with a few people who received awards on stage at Railsconf 2009, this years Ruby Heroes.

Brian Helmkamp

John Mettreaux | Rails Fire

John Mettreaux

Rails Envy Podcast – Episode #093

Episode #093. Dan Benjamin (Playgrounder, Hivelogic) is back this week. We’ve got a ton of news this week and just maybe an awkward moment or two. Also, I mis-pronounced John Mettreaux’s name wrong, calling him Jake. Sorry about that.

Update: We’re now accepting stories and feedback to @railsenvy on Twitter. You know, if you feel like letting us know about something.

Syndicate content