map.favorite "/users/:id/favorite", :controller => "users", :action => "favorite", :conditions => { :method => :post }
Ruby On Refactor my favorite action.
by Ben Burkert,
December 12, 2007 16:09
Ruby On Help Refactor this into Rai...
by Ben Burkert,
December 11, 2007 23:04
Haml is a templating engine...
Ruby On Help Refactor this into Rai...
by Ben Burkert,
December 11, 2007 04:56
Are you asking how to build...
def zipcode=(new_zipcode)
if new_zipcode != self.zipcode
write_attribute(:zipcode, new_zipcode) #problem here
...
Ruby On overwriting an activerecord...
by Ben Burkert,
November 28, 2007 03:23
the first argument of write...
def tag(name, attributes = {}, &block)
attributes = attributes.to_a.collect { |a| "#{a.first}=\"#{a.last}\""}.join(' ')
inner = block ? "\n\t#{block.call}\n" : ""
...
Ruby On Iterated printing in the he...
by Ben Burkert,
November 18, 2007 23:06
I like to use nested blocks...
def args_eval(line) tokens = [] while(data = line.match(/\[.*\]/)) ...
Ruby Argument eval
by Ben Burkert,
October 22, 2007 19:56,
1 refactoring
this code evaluates a strin...
require 'spec_statistics' ...
Ruby rake stats for RSpec
by Ben Burkert,
October 17, 2007 19:47,
2 refactorings
I want to get some statisti...
OrmManager ormManager = OrmManager.Current; RevisionManager.CreateRevision(ormManager, delegate ...
C# On How to add gracefully undo ...
by Ben Burkert,
September 27, 2007 10:09
Maybe use a revision system...
def parse_line
if line_is_parsable?
if line_is_nested?
...
Ruby Arrow Code
by Ben Burkert,
September 26, 2007 17:00,
9 refactorings
I hate arrow code. It's ug...

You can get rid of the "req...