Displaying 1 result from an estimated 1 matches for "new_education_path".
2007 Mar 28
5
link_to best practice
...ly using this in my view:
<%= link_to image_tag(''icons/add.png'', { :align => ''absmiddle'', :border
=> 0, :size => ''16x16'', :alt => ''New education record'', :title => ''New
education record'' }), new_education_path(@consultant) %> <%=
link_to ''New education record'', new_education_path(@consultant) %>
... but it feels really really unDRY!
Anyone got a DRYer solution please?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
Y...