Skip to content

Instantly share code, notes, and snippets.

@RyanFriedman
Created November 29, 2011 05:50
Show Gist options
  • Save RyanFriedman/1403616 to your computer and use it in GitHub Desktop.
Save RyanFriedman/1403616 to your computer and use it in GitHub Desktop.
def index
@search = params[:search]
end
def results
if params[:search].present?
puts "for #{@search}"
end
end
<% if params[:search].present? %>
for "<%= @search %>"</span>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment