1
2
3
def validate_permalink(attr_name)
    sanitize_permalink(permalink? ? attr_name : permalink)
end

Ruby On Simple if staments

by teamco-anthill.blogspot.com, March 17, 2010 13:33
2ddbd54c304df255bdb709f2cd50ffe8 Talk
1
@recipients = reply.case.users.map(&:email).delete(reply.created_by.email)*","

Ruby On Remove element from array

by teamco-anthill.blogspot.com, September 03, 2009 13:51 Star_fullStar_fullStar_fullStar_fullStar_full

Smaller version

2ddbd54c304df255bdb709f2cd50ffe8 Talk
1
2
3
4
  def download
    dl_opts = params[:dl].nil? ?   'attachment' : 'inline'
    dl_img  = params[:type].nil? ? "" : "_#{params[:type]}"
...

Ruby Download file

by teamco-anthill.blogspot.com, March 15, 2009 12:50, No refactoring, tagged with rails ruby

Try to refactor send file code

2ddbd54c304df255bdb709f2cd50ffe8 Talk
1
2
3
4
def archive_files(source, glob_mask, destination)
  Dir.glob(File.join(source, glob_mask)) do |file| 
    should_copy_file = true
...

Ruby On Ruby Idioms

by teamco-anthill.blogspot.com, March 15, 2009 12:31

Refactored by Netbeans hints

2ddbd54c304df255bdb709f2cd50ffe8 Talk