Index: app/models/attachment.rb =================================================================== --- app/models/attachment.rb (revision 141) +++ app/models/attachment.rb (working copy) @@ -1,6 +1,6 @@ class Attachment < ActiveRecord::Base - ATTACHMENT_DIR = "#{RADIANT_ROOT}/db/attachments" + ATTACHMENT_DIR = "#{RAILS_ROOT}/db/attachments" belongs_to :created_by, :class_name => 'User', :foreign_key => 'created_by' belongs_to :updated_by, :class_name => 'User', :foreign_key => 'updated_by' Index: lib/attachment_tags.rb =================================================================== --- lib/attachment_tags.rb (revision 141) +++ lib/attachment_tags.rb (working copy) @@ -119,10 +119,10 @@ size = size.to_sym if size alt = tag.attr['alt'] if link - url = attachment.url(transform) - %{#{alt}} + url = attachment.url(tag.attr['transform']) + %{#{alt}} else - %{#{alt}} + %{#{alt}} end end