Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created September 5, 2009 14:43
Show Gist options
  • Save ohadlevy/181419 to your computer and use it in GitHub Desktop.
Save ohadlevy/181419 to your computer and use it in GitHub Desktop.
diff --git a/app/helpers/hosts_helper.rb b/app/helpers/hosts_helper.rb
index 5a1c338..e5b5ada 100644
--- a/app/helpers/hosts_helper.rb
+++ b/app/helpers/hosts_helper.rb
@@ -18,7 +18,8 @@ module HostsHelper
image = "#{os}.jpg"
title = os
end
- return image_tag("hosts/#{image}", :size => "18x18", :title => title) + " #{record.shortname}"
+ image_tag("hosts/#{image}", :size => "18x18", :title => title) +
+ link_to(record.shortname, :action => "edit", :id => record)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment