Community Calendar API

Posted by & filed under Development, Ruby on Rails, WordPress.

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 »

ActiveRecord: self.field vs field

Posted by & filed under Development, Ruby on Rails.

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 »

Invalid Authenticity Token, IE and Underscores

Posted by & filed under Ruby on Rails.

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

Posted by & filed under Ruby on Rails.

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

Posted by & filed under Ruby on Rails.

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 »