Reputation: 63
I am new to ruby and I have here a code for a delete button
= xs_danger_btn_to "Verwijderen", time_keeper_employee_manager_role_path(@time_keeper, supervisor, manager_role), method: :delete, :btn_class => "custom"
I want to change the xs_danger_btn_to
class to my own things, like color/hover/border ect. in css. How can I do that?
I am running ruby version: 2.3.1p112
Upvotes: 0
Views: 63
Reputation: 542
its looks like you are not using the standard syntax for ruby erb. you can try with this:
= link_to "Verwijderen", time_keeper_employee_manager_role_path(@time_keeper, supervisor, manager_role), method: :delete, :class => "insertyournewclass"
change the 'insertyournewclass' with any class that you want, for example: 'btn btn-primary btn-sm' if you are using bootstrap
Upvotes: 1