【发布时间】:2018-09-29 15:31:45
【问题描述】:
我这里有一个代码,您可以在其中单击(帐户)文本。这将打开下一页。
我想拥有:当您单击 (.box.boxAccounts) 时,您会转到下一页,而不仅仅是文本 (account) =Link_to 返回帐户名称。
.features-boxed
.container.boxContainer
#myUL.row.features.appFunction.indexBox
- @accounts.sort_by(&:name).each do |account|
.col-sm-6.col-md-5.col-lg-3.item.icons
.box.boxAccounts
.boxInsiteAccount
%i.fa.fa-building.iconSpaceBottom.accountIcon
%h3.name
= link_to account.name, account_path(account), :class => "optieTekst"
%br/
【问题讨论】:
-
您尝试了什么,遇到了什么错误,没有发生什么? How to ask a good question
标签: html ruby-on-rails ruby bootstrap-4 haml