Displaying 1 result from an estimated 1 matches for "ginourm".
Did you mean:
binorm
2010 Apr 20
5
Spring Cleaning
Right now in my view, I have a whole HUGE clump of
<% if current_user %> and then <% if current_admin %> and then <% if
current_teacher %> and then all that other stuff in my view.
I have a ginourmous chunk of if and else statements in my views... is
there a way to make it prettier? The if and else''s almost all have the
same functions, expect for some minor changes.
Like this-
<% if current_user %>
<%= link_to "Create a new BLAH", new_blah_path %>
<% end %...