Show placeholder images for game logos

Also, set the name as the alt text.

Fixes #11 and #12
Hmmmm.... Maybe we should make those objects consistent then we can just have one function to fetch the image or the placeholder?

- Chris Saunders / sndrs.ca

> On Aug 5, 2014, at 20:37, Carson Brown <notifications@github.com> wrote:
> 
> In app/helpers/welcome_helper.rb:
> 
> > @@ -1,13 +1,17 @@
> >  module WelcomeHelper
> > -  def game_icon(game)
> > -    image_tag("http://media.steampowered.com/steamcommunity/public/images/apps/#{game.appid}/#{game.img_icon_url}.jpg")
> > +  def game_icon(game)    
> > +    if game.img_icon_url.present?
> > +      image_tag("http://media.steampowered.com/steamcommunity/public/images/apps/#{game.appid}/#{game.img_icon_url}.jpg", alt: game.name)
> So just add methods to game object and ditch the welcome_helper?
> 
> —
> Reply to this email directly or view it on GitHub.