rails中的HAML link_to不会在页面加载时应用类

时间:2015-08-16 06:50:22

标签: javascript ruby-on-rails haml

以下脚本的问题在于,以下代码仅在页面刷新后不在第一页加载期间激活releases.content。我是编写haml模板的新手。我可能在这里做的任何明显错误的事情?

%li.accordion-navigation
      = link_to "Last 10 Releases", "#releases" 
      #releases.content.active
        %table.grid
          %thead
            %tr
              %th Build
              %th Deployed at
              %th Report
          %tbody
            - @last_deployments.each do |deployment|
              %tr
                %td= deployment.build
                %td= deployment.deployed_date
                %td
                  = link_to "detail", certification_path(deployment.certification)
    %li.accordion-navigation
      = link_to "Current Bug Status", "#bug_status"
      #bug_status.content.active \w

0 个答案:

没有答案