Skip to content

Instantly share code, notes, and snippets.

@richardsondx
Created March 30, 2012 03:47
Show Gist options
  • Save richardsondx/2246319 to your computer and use it in GitHub Desktop.
Save richardsondx/2246319 to your computer and use it in GitHub Desktop.
What's wrong with my if statement?
<% if micropost.to_guys == true %>
<li class="headshot"><%= image_tag("guys-head.png")%></li>
<%elsif%>
<li class="headshot"><%= image_tag("girl-head.png")%></li>
<%end%>
class CreateMicroposts < ActiveRecord::Migration
def change
create_table :microposts do |t|
t.boolean :to_guys
t.string :content
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment