Last active
August 29, 2015 14:01
-
-
Save sharnie/c2c8e66a168470026241 to your computer and use it in GitHub Desktop.
Photo search index page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="?" method="get"> | |
<input type="text" name="q" placeholder="Search Instagram photos..." autofocus/> | |
</form> | |
<% @results.each do |instagram| %> | |
<%= image_tag instagram.images.low_resolution.url %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment