rails中用link_to用法
rails中的link_to就相当于html中的<a>标签
1.link_to后面可以直接加方法名
=link_to "添加用户",:action => "judge_add_account"
=link_to "添加用户",:class=>'right',:action => "judge_add_account"
=link_to "退出",:action => 'logout',:controller => 'sessions'
=link_to "删除",t, method: :delete, data: { confirm: "您确实要删除"+t.name+" ?" }
match '/user/delete_account/:id',to: 'user#delete_account', via:'delete'
=link_to '修改密码',admin_url(id:t.id)
match '/user/:id/modify_account_key',to:"user#modify_account_key",via:'get',:as=>"admin"
=link_to t.name ,bid_detail_url(activity_id:t.activity_id,name:t.name)