0

I want to display the records returned by following line in html,

       @var = User.where("first_name like ?", "%"+params[:searchTextField]+"%")

How do i display these in html?

1 Answers1

0

Like this

<% @var.each do |v| %>
  <%= v.first_name %>
  <%= ... %>
<% end %>
usha
  • 28,973
  • 5
  • 72
  • 93