{"issue":{"created_at":"2011-11-21T04:33:46Z","state":"open","updated_at":"2011-11-21T04:33:46Z","comments":0,"user":{"gravatar_id":"a89207e0a690af4bb03f90936e0ad576","id":596169,"url":"https://api.github.com/users/fu-media","login":"fu-media","avatar_url":"https://secure.gravatar.com/avatar/a89207e0a690af4bb03f90936e0ad576?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"i am trying to make nice helpers so that we can use onyl\r\n\r\n\r\n````\r\nedit(category) \r\ndestroy(post)\r\nshow(user)\r\n````\r\nand we get the selected link with a nice image.\r\n\r\n\r\ncan anyone tell me if i am doing it right or is there a better magical rails way to get the url?\r\n\r\n\r\n````\r\ndef show(link)\r\n  link_to image_tag(\"admin/show.png\"), eval(\"admin_#{object.class.to_s.downcase}_path(#{object.id})\")\r\nend\r\n\r\ndef edit(object)    \r\n  link_to image_tag(\"admin/edit.png\"), eval(\"edit_admin_#{object.class.to_s.downcase}_path(#{object.id})\")\r\nend\r\n\r\ndef destroy(link)    \r\n  link_to image_tag(\"admin/destroy.png\"), eval(\"admin_#{object.class.to_s.downcase}_path(#{object.id})\"), :method=>:delete, :confirm=>\"Do you really want to delete this?\"\r\nend\r\n````","assignee":null,"id":2301315,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":767,"title":"Helper for edit/show/destroy Link with an image","html_url":"https://github.com/gregbell/active_admin/issues/767","closed_at":null,"milestone":null,"url":"https://api.github.com/repos/gregbell/active_admin/issues/767"},"action":"opened"}