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?
Like this
<% @var.each do |v| %> <%= v.first_name %> <%= ... %> <% end %>