我试图让这个简单的列表正常工作,但是 ul 正在关闭而不是在循环中包含 li 元素。我错过了一种简单的方法吗?
%ul.nav.nav-tabs.nav-stacked
- @courses.each do |c|
%li
= link_to "add", { :controller => "admin/relateds", :action => "edit", :id => c.id }, :confirm => "Are you sure?"
= c.coursetitle