rawnet / rawnet-admin

An inheritable admin interface for Ruby on Rails apps
MIT License
0 stars 2 forks source link

Added icon_link_to helper method #4

Closed tombeynon closed 9 years ago

tombeynon commented 9 years ago

Added an extra utility method and refactored the existing link_to helpers.

icon_link_to 'Duplicate', [:duplicate, resource], 'duplicate'

I decided to match the ActiveSupport link_to parameters (specifically text first, link second), since it's what we expect. Unfortunately the other helpers use the reverse (link, text), and I don't want to switch it around and break other sites. Unless we think it's worth doing it now before too many sites are using RA?

vertism commented 9 years ago

:+1:

boxofrad commented 9 years ago

:+1:

efexen commented 9 years ago

Much :heart: for this!

robparvin commented 9 years ago

Like this :+1: