RSS Feed
May 17

class_navigation_for helper



# The css classes used are for use with the Blueprint css framework

def class_navigation_for(object = nil, options = {})
  unless object.nil?
    options = {
      :class => ’span-24 class-navigation’,
    }.merge!(options)
    content_tag(:div, options) do
      content_tag(:p) do
        link_to “New #{object.to_s.titleize}”, eval(”new_#{object.to_s.downcase}_url”)
      end
    end
  end
end
Feb 6

Rails ActiveRecord::Base missing find_all_by_date_range

Posted on Friday, February 6, 2009 in Just for fun, Ruby on Rails, Software, Web Design Tools, Web Tools, Work

Hello everyone,
A current project I am working on required finding records within a certain date range. Many other projects I have worked on also required something similar. So, I decided to create a Rails gem to handle this. The gem is available on GitHub. http://github.com/timmatheson/find-all-by-date-range/tree/master

Install

Usage:

I hope this helps anyone else needing this feature of ActiveRecord::Base.

Best regards,

Tim Matheson

May 16

Meet the Aqua Bots

Posted on Friday, May 16, 2008 in Work

Meet the Aqua Bots

A pair of underwater robots I created.

May 15

Gaffney Plumbing - Marshfield Wisconsin Plumbing Company

Posted on Thursday, May 15, 2008 in Work

gaffney-post.jpg
Marshfield Wisconsin Plumbing Company