如何在 Rails3 中创建带有标签和图像的按钮?
此代码仅显示图像:
<%= link_to image_tag("newRevision.png"), {:controller => :review_transitions, :action => :show_step}, {:class => "navBtn"} %>
但是...带有文字的图像?
<%= link_to "example_text"+image_tag("newRevision.png"), {:controller => :review_transitions, :action => :show_step}, {:class => "navBtn"} %>
谢谢!