Commit 6ccbda53dd024f4fe41d99fa002cf2ab5ecc572b
1 parent
77adb7eb
Exists in
master
and in
2 other branches
avoid raise is there s no profike
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
footer.html.erb
1 | 1 | <script> |
2 | - $('.members-block .block-footer-content').prepend('<span class="members-counter"><%= profile.members.count %> participantes</span>'); | |
2 | + $('.members-block .block-footer-content').prepend('<span class="members-counter"><%= profile.nil? ? '' : profile.members.count %> participantes</span>'); | |
3 | 3 | </script> |
4 | 4 | |
5 | 5 | <% if params[:controller] == 'profile' and params[:action] == 'index' %> | ... | ... |