<% if ['show','edit'].include? params[:action] %> <% can_change = true %> <% else %> <% can_change = false %> <% end %> <% if can_change %>
  • <%= iconlink_to changing_house_person_path, icon('home'), "Cambia nucleo" %>
  • <% else %>
  • <%= link_to "Cambia nucleo", '#' %>
  • <% end %>