[].tap do |column|
column << count
links = []
links << link_to("#{trainee.full_name}", profile_path(trainee.user.id))
column << links
This is traniees_datatables.rb file. when I click traniee name I want it to open in a new tab.
This work on index.slim file as
td = link_to "#{trainee.full_name}", profile_path(trainee.user.id),target: "_blank", rel: "nofollow"
When I add target: "_blank", rel:"nofollow" in traniees_datatables.rb file shows an error.
Aucun commentaire:
Enregistrer un commentaire