0

I have the following drop-down menu (screenshot below). What I want to do is to click on each subcategory and show a partial with the information on the gray space below the menu. The menu uses HAML with the following code (excerpt below). Basically, I need to pass a value to the :href attribute and then show the according to partial into the div.

      %li
        %a.dropdown-button.dropdown-menu-kpis{"data-activates" => "SalesDropDown", :href => "#!"}
          %i.material-icons attach_money
          %span
            Sales
            %i.material-icons.right keyboard_arrow_down
        %ul#SalesDropDown.dropdown-content.dropdown-horizontal-list
          %li
            %a.dropdown-content-items{:href => "#general_kpis_sales_aggregate"} Agreggate

Categories Menu and Space to show results

Leo
  • 469
  • 1
  • 7
  • 16
  • 1
    possible duplicate of https://stackoverflow.com/questions/26808696/rails-4-rendering-a-partial-with-ajax-jquery-remote-true-and-respond-to#26809518 – lacostenycoder Apr 14 '18 at 03:48
  • Yeah.. I figured out how to solve it... and double yeah, that link give me more insight about how to make it more manageable. – Leo Apr 14 '18 at 18:12

0 Answers0