Created
October 20, 2011 21:14
-
-
Save zorn/1302408 to your computer and use it in GitHub Desktop.
There has got to be a clean way to do this...
This file contains hidden or 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 @event.main_venue.blank? %> | |
<div id="behavior_form_main_venue_form" class="behavior_form hide"> | |
<% else %> | |
<div id="behavior_form_main_venue_form" class="behavior_form"> | |
<% end %> |
Thanks for the help guys. Also related:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can have a helper that outputs classes based on a venue that has been passed. Or, you can create a presenter class, pass it a venue, then have methods such as "form_classes" that outputs the classes based on the condition.