def sort
    if params[:fact_id]
      @fact = Fact.find_by_id(params[:fact_id]) || Fact.new
...

Ruby Ugly IF, ELSE

by serek.openid.pl, December 18, 2009 10:17, 3 refactorings, tagged with rails, short, dry

Trying to make this a lot c...

597821ce12359ab2d95437c8164d5254 Talk
tmp = reply.case.users.map(&:email)
tmp.delete(reply.created_by.email)
tmp.join(',')
...

Ruby Remove element from array

by serek.openid.pl, September 03, 2009 12:12, 3 refactorings, tagged with array, remove, remove element from array

I wanted to remove specific...

597821ce12359ab2d95437c8164d5254 Talk