At work, we had a hackathon and developed some sample apps that make use of our new HoopaNow API. HooplaNow is a community calendar in Iowa’s Creative Corridor. These are still works in progress, but there is a Sinatra app called simply hooplanow_api_example for you Rubyists out there, and a wordpress plugin for those of… Read more »
Posts Categorized: Ruby on Rails
CoffeeScript, Jade and Stylus syntax highlighting in Sublime Text 2
CoffeeScript, Jade and Stylus syntax highlighting in Sublime Text 2
ActiveRecord: self.field vs field
TL;DR version:“self.field” is only necessary when you are assigning a new value to a field. It always confused me why it seemed like sometimes using the field name from the database failed to work in model methods that I wrote. When the method was simple, things would work fine, but then something would happen and… Read more »
Dogs at computers
The lightning talk at 39:00 helps make programming a lot less scary for newbies.
How to load test your web site or application with siege
Your mileage may vary, but this worked well for me. I wanted to test one of our sites under load. Our sites generally get a lot of traffic, so when we move from staging to production we have to keep in mind that we’re about to go from 1 or 2 developers hitting the pages… Read more »
Invalid Authenticity Token, IE and Underscores
I spent a couple hours time which I will never get back trying to figure this one out. My rails application worked perfectly fine in Firefox, but IE was throwing an error. That’s not terribly unusual with IE, but this time something was fishy. The error is all over the google. There are several suggested… Read more »
Collection Select
I always fail to remember how to create a simple drop down for my models with a has_many / belongs_to relationship. It’s one of the most basic things you could possibly do with a form, and yet each time I want to hook one up I find myself opening up a tab and googling for… Read more »
Nokogiri and Css Selectors with Namespaces
I’ve been using the css function from nokogiri to navigate xml and grab elements, instead of using xpath. I love the fact that it’s an option, since css feels to much more natural. But, today I ran into something I haven’t had to deal with before. I was parsing some xml from a service when… Read more »