0
私は以下のように設定glyphiconsありますRailsのHAML:のlink_to glyphiconリストアイテム - 違法ネスティング
= link_to edit_user_registration_path(pin.user_id), class: "btn btn-default" do
%span.glyphicon.glyphicon-cog
をしかし、私は%李に入れたとき、私は、不正なネスティングエラーが出る:
%ul.nav.navbar-nav.navbar-right.custom
%li= link_to edit_user_registration_path(pin.user_id), class: "btn btn-default" do
%span.glyphicon.glyphicon-cog
を
私は次のようになります:
Illegal nesting: content can't be both given on the same line as %li and nested within it.
どうすればいいですか?