Tag:link_to

  • Rails link? To explain

    Time:2020-4-27

    example:code:<%= link_to “Issues”, {:controller => “issue”, :action => “index”}, {:title => “Issues”} %> In fact, the attributes of HTML elements can be set in this way. For example, add a click event processing:code:<%= link_to “Issues”, {:controller => “issue”, :action => “index”}, {:onclick => “alert(1)”} %> But it is worth noting that the second parameter of […]