Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 html 中显示以下行返回的记录,
@var = User.where("first_name like ?", "%"+params[:searchTextField]+"%")
我如何在 html 中显示这些?
像这样
<% @var.each do |v| %> <%= v.first_name %> <%= ... %> <% end %>