<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>RealityForge.org: Eyelook: Rails photo gallery</title>
    <link>/articles/2006/04/21/eyelook-rails-photo-gallery</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>A little short for a storm trooper</description>
    <item>
      <title>Eyelook: Rails photo gallery</title>
      <description>&lt;p&gt;Eyelook is a photo gallery I created over a weekend when I was home sick. It is amazing how productive rails can make you because within 8 hours I had the code in place and had set it up on my personal web server.&lt;/p&gt;


	&lt;p&gt;Very little of that time was spent coding &amp;#8211; most of it was spent working on re-arranging the xhtml+css or figuring out how to go about &lt;a href="http://www.realityforge.org/articles/2006/04/06/loading-binary-data-into-rails-fixtures"&gt;Loading Binary Data into Rails Fixtures.&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Every eyelook application has a set of users who have a list of albums with pictures. The image data is stored in the database and cached on the filesystem on demand. This way a backup of the database backs up the complete system.&lt;/p&gt;


	&lt;p&gt;An example of users page that lists galleries is&lt;/p&gt;


	&lt;p&gt;&lt;a href="/files/album_list.jpg"&gt;&lt;img src="http://www.realityforge.org/files/album_list_small.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;You can select one of these galleries and it will bring up a list of images such as&lt;/p&gt;


	&lt;p&gt;&lt;a href="/files/photo_list.jpg"&gt;&lt;img src="http://www.realityforge.org/files/photo_list_small.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;From there you can either download the original or can view a larger lightbox style image&lt;/p&gt;


	&lt;p&gt;&lt;a href="/files/lightbox.jpg"&gt;&lt;img src="http://www.realityforge.org/files/lightbox_small.jpg" alt="" /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;The admin section is not as sexy but it is functional.&lt;/p&gt;


	&lt;p&gt;You can grab the source from subversion via the following command. Read the &lt;span class="caps"&gt;README&lt;/span&gt;.txt for installation instructions.&lt;/p&gt;


	&lt;p&gt;svn co &lt;a href="http://www.realityforge.org/svn/code/eyelook/trunk"&gt;http://www.realityforge.org/svn/code/eyelook/trunk&lt;/a&gt; eyelook&lt;/p&gt;</description>
      <pubDate>Fri, 21 Apr 2006 14:55:00 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:de452e21-b289-4e8c-923d-800d94ef5ee2</guid>
      <author>Peter Donald</author>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery</link>
      <category>Rails</category>
      <enclosure type="image/jpeg" url="http://www.realityforge.org/files/photo_list.jpg" length="64356"/>
      <trackback:ping>http://www.realityforge.org/articles/trackback/50</trackback:ping>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by anon</title>
      <description>&lt;p&gt;Thanks.&lt;/p&gt;</description>
      <pubDate>Wed, 03 May 2006 08:29:09 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:aaf05321-c601-4970-b054-58694f80acd0</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-60</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by Peter Donald</title>
      <description>&lt;p&gt;There is no sql file. You create the database in step 3 by doing &amp;#8220;rake migrate&amp;#8221; which creates the database using rails migrations.&lt;/p&gt;</description>
      <pubDate>Sat, 29 Apr 2006 20:53:24 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:3b405da8-bdb7-46b8-99a8-098a6b76dc15</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-59</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by eyelook.sql ???</title>
      <description>&lt;p&gt;where is the eyelook.sql file ???, ..&lt;/p&gt;</description>
      <pubDate>Sat, 29 Apr 2006 01:26:18 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:d13be632-7bce-45a1-9b27-998e162ee5e8</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-58</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by Lucian</title>
      <description>&lt;p&gt;Just a note: If you&amp;#8217;re using MySQL, i &lt;strong&gt;think&lt;/strong&gt; it requires subselects, so needs to be &amp;gt; version 4.1 &lt;span class='caps'&gt;IIRC&lt;/span&gt;.&lt;/p&gt;</description>
      <pubDate>Wed, 26 Apr 2006 21:04:07 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:d8eeeaab-8f3b-498c-9f50-a8675139ba8b</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-57</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by Peter Donald</title>
      <description>&lt;p&gt;Fixed.&lt;/p&gt;</description>
      <pubDate>Tue, 25 Apr 2006 03:00:57 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:24c006dd-7ffa-4bde-afc5-7400b523f547</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-56</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by Dave Lehman</title>
      <description>&lt;p&gt;Just a quick note on installation. Step three involves firing up the console (rather than a server) to add a new user.&lt;/p&gt;


&lt;pre&gt;
  ruby script/console
  User.create!(:name =&amp;gt; 'myname', :password =&amp;gt; 'mypwd')
&lt;/pre&gt;

	&lt;p&gt;Also, step 4 has a typo for the start server line. Should be:&lt;/p&gt;


&lt;pre&gt;
  ruby script/server
&lt;/pre&gt;

	&lt;p&gt;Thanks for releasing your source! Looking forward to perusing it tonight.&lt;/p&gt;</description>
      <pubDate>Tue, 25 Apr 2006 01:42:08 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:6447df53-e140-43c9-8072-65d582a46478</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-55</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by Peter Donald</title>
      <description>&lt;p&gt;Unfortunately there is no public demo. I may try to put one up over next week.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Apr 2006 08:47:18 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:c4b05b95-3c57-47ec-8b68-1d579710fe80</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-54</link>
    </item>
    <item>
      <title>"Eyelook: Rails photo gallery" by John Engler</title>
      <description>&lt;p&gt;got a link to see the gallery in practice?&lt;/p&gt;</description>
      <pubDate>Sun, 23 Apr 2006 04:42:50 +1000</pubDate>
      <guid isPermaLink="false">urn:uuid:bffbda3f-3dd3-4a7f-be53-2f3309708bf8</guid>
      <link>http://www.realityforge.org/articles/2006/04/21/eyelook-rails-photo-gallery#comment-53</link>
    </item>
  </channel>
</rss>
