Created
March 30, 2012 03:47
-
-
Save richardsondx/2246319 to your computer and use it in GitHub Desktop.
What's wrong with my if statement?
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
<% 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%> |
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
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