Archive for the ‘Ruby on Rails’ Category

Cleaning the sessions database store with a rake task in Rails

Wednesday, December 24th, 2008

So, for one reason or another, I am using the built-in db store for sessions on the RidingResource site. I was about to embark on a path to utilizing sessions to help maintain the search selections across the site, and I noticed that the sessions database was full of... junk. Rails ...

Actually handling blanking default form input values… in all browsers

Friday, December 5th, 2008

The other day I wrote about needing to blank default values when text input fields gain focus in a form.  I had found a jQuery-based script that seemed to do the trick... or so I thought. When RidingResource went beta, I was tailing the RoR logs and noticed that "ZIP" was ...

Authenticating all controllers for your Rails application with restful_authentication

Wednesday, December 3rd, 2008

So while this might seem intuitive, I found it a little tricky. Preliminary Google searching didn't reveal anything inherently obvious. However, robbrit on Freenode was able to lend me a hand and I got it figured out. As you might expect, restful_authentication's before_filter, :login_required, will direct you to the sessions controller ...

Railsy goodness — ToggleFormText and will_paginate

Thursday, November 27th, 2008

So, as some of you may know, I do a little Ruby on Rails coding on the side. The geek in me really is quite dominant, so I spend a lot of time in terminal with Vim pumping away at code. Recently, in a project I'm working on with Ainsley, I've ...

Seeding ruby… on rails, that is

Thursday, October 9th, 2008

So it's been a little while since I've written a post, but that's how this blog goes.  Sometimes I write lots of stuff, and sometimes I write nothing at all. One of the things I wanted to do with the new blog is be a little bit "open source" about the ...