<%= link_to( content_tag(:div, content_tag( :i, nil, :class => 'fa fa-plus-circle fa-2x') + content_tag( :span, I18n.t("action.create", resource: @model.display_name) + " para #{model}", nil ), :class => "btn btn-box span2"), { :controller => params[:controller], :action => "new", :"model" => model, :currentcontroller => params[:controller] }, :"data-target" => '#new-category', :"data-toggle" => 'modal', :remote => true ) %>

<% categories.each do |category| %> <% end %>
<%= t("category.name") %> <%= t("actions") %>
<%= link_to category.name, category_path(category) %> <%= render 'adminpanel/icons/show', resource: category %> <%= render 'adminpanel/icons/edit', resource: category %> <%= render 'adminpanel/icons/delete', resource: category %>