# Usage:
#   nil.get :blake # => nil
#   some_obj.get :name, :length # => The value of some_obj.name.length or nil 
...

Ruby Getting at properties witho...

by https://www.google.com/accounts/o8/id?id=AItOawnD4RuRfXrViQ3sf5r-skjxsD4i7zlzCaA, January 30, 2011 17:41, 4 refactorings, tagged with ruby, helper

Is there a better way to do...

483eacd3be075a4f342003c873796c03 Talk
def display_title
  if @title.blank?
    APP_CONFIG[:site][:title]
...

Ruby Page Title Display Helper

by TimK, December 02, 2010 04:59, 10 refactorings, tagged with rails, ruby, helper

I have a helper that append...

2722012beb9afcad75df5c9f2229fd8c Talk
def user_photo(user, values = {})
    values[:style] ||= ''
    values[:class] ||= ''
...

Ruby User thumbnail helper needs...

by Danny Peck, September 28, 2010 16:53, 1 refactoring, tagged with ruby, helper

Bit of a Ruby noob. Could u...

8f5553306c2cf7f4b14153f6117f8e9b Talk
def button(title, values)
  # title: Accepts a string that will appear on the button
  # values: accepts the possible optional parameters.
...

Ruby Button code creates a gener...

by Danny Peck, September 09, 2009 15:08, 10 refactorings, tagged with ruby, helper, button

Probably a more efficient w...

8f5553306c2cf7f4b14153f6117f8e9b Talk
def browser?(b)
    user_agents = {
      :ff   => /Firefox/,
...

Ruby browser detection and url r...

by seaofclouds, October 16, 2008 18:19, 4 refactorings, tagged with helper, array, browser detect

i have a simple browser det...

F55e8e113669f6ea7d1d99f38907ce54 Talk
module DashboardHelper
  def activity_message_for(object)
    case object.class.name
...

Ruby Dashboard

by Kryckan, July 21, 2008 21:01, 6 refactorings, tagged with rails, helper

This works but it's kind of...

C8c549e9bb39135192db53d238e19f3e Talk
# Sample Output:
 #
 #  <tr>
...

Ruby Iterated printing in the he...

by XGamerX, November 18, 2007 03:52, 2 refactorings, tagged with rails, helper, radio button

Here is a function I have b...

55d6457963d5be7ad341343105ddc8a3 Talk