fixes done as suggested

This commit is contained in:
Gopesh Tulsyan 2014-05-15 11:03:28 +05:30
parent 94078f844b
commit 4778564e3e
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
= simple_format(conference.venue.description, class: 'lead')
.col-md-2
.btn-group-vertical
- if controller.class.name != "ConferenceController"
- if @conference && controller.class.name != "ConferenceController"
= link_to "View Conference", conference_path(conference.short_title), :class =>"btn btn-default"
- if conference.registration_open?
- if conference.user_registered?(current_user)