Colin Law wrote in post #1181246: >> >> <h2><i class="fa fa-street-view"></i> <% if @user.profile.location.nil? >> ? "" : @user.profile.location %> <% end %></h2> > > You are testing @user.profile.location for nil, but it is > @user.profile that is nil > > Colin
Doh!Thanks. I fixed it now. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/800b1fe01cb3190208596c6128793163%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

