ActionView::TemplateError (wrong argument type FalseClass (expected Proc)) on line #81 of brothers/show.html.erb:
78: </div><br/>
79: <% end %>
80:
81: <% if cookies[:user_type] == "admin" %>
82: <%= link_to 'Edit', edit_brother_path(brother), :class => :brother_edit_link %>
83: <%= link_to 'Destroy', brother, :confirm => 'Are you sure?', :class => :brother_delete_link, :method => :delete %>
84: <% end %> <br/><br/>
or simply get
Application error
Rails application failed to start properly
The interesting part is that sometimes the view renders correctly, but that is rarely. don't understand it. Any help is appreciated.
- Matt