1
2
3
def link_to_tags(tags)
  tags.collect { |tag| link_to tag, tags_path_for(tag) }.join(",")
end

Ruby On link_to for tags

by bakkdoor, August 19, 2008 15:44 Star_fullStar_fullStar_fullStar_fullStar_full

something like this?

B107d8b1f213ff3af634ee6ecf7720cc Talk
1
2
3
4
# creates those methods for you

def self.should_be_upgraded_to(title, id)
...

Ruby On Similar Methods Refactoring

by bakkdoor, August 13, 2008 02:20 Star_fullStar_fullStar_fullStar_full

make that a class method, t...

B107d8b1f213ff3af634ee6ecf7720cc Talk