0
= link_to "PREVIOUS", display_featured_path(:current_featured_statement_id => statement.id, :direction => "previous"), :remote => true, :class=> ""
這是我的代碼,但我想在'上一個'鏈接的左側添加一個箭頭,指向左側。我一直在玩它一段時間,但還沒有找到一個堅實的解決方案。如何在haml的rails link_to helper的左側添加字體超讚圖標?
任何幫助,非常感謝。
我試過Ronaks的解決方案,但我得到一個語法錯誤。
似乎並不奏效。導致語法錯誤。 – NoobSter 2015-03-31 20:12:37
您是否再次嘗試更新的解決方案?它爲我工作 – 2015-04-02 16:47:02