<%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %> ENSL - User Finder

Search for a user

<%= form_tag do %> <%= hidden_field_tag "source", params[:source] %>

<%= label_tag "username" %>
<%= text_field_tag "username", params[:username], :size => 20 %>

<%= label_tag "steamid" %>
<%= text_field_tag "steamid", params[:steamid], :size => 20 %>

<%= label_tag "firstname" %>
<%= text_field_tag "firstname", params[:firstname], :size => 20 %>

<%= label_tag "lastname" %>
<%= text_field_tag "lastname", params[:lastname], :size => 20 %>

<%= label_tag "irc" %>
<%= text_field_tag "profile[irc]", params[:irc], :size => 20 %>

<%= submit_tag "Search" %>

<% end %>

Use % for asterisk.

<% if @results %>

Results

<% for user in @results %> <% end %>
Username SteamID Options
<%= h user %> <%= h user.steamid %> <%= link_to_function 'Select', "opener.document.getElementById($('source').value).value='#{(h user.username)}';" %>
<% end %>