Created
April 5, 2011 22:41
-
-
Save diebels727/904731 to your computer and use it in GitHub Desktop.
Change patterns
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
#like this ... | |
<p> | |
<b>Notes:</b> | |
<% if @sighting.notes.nil? %> | |
<span id="notes"> </span> | |
<% else %> | |
<span id="notes"><%= @sighting.notes %></span> | |
<% end %> | |
</p> | |
#To something more like this | |
<p> | |
<b>Notes:</b> | |
<span id=<%=@sighting.class.downcase%>> <%= @sighting.notes || ' ' %></span> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment