NoMethodError in Listings#show

Showing /root/sharetribe/app/views/listings/show.haml where line #148 raised:

undefined method `contact_to_listing_path' for #<#<Class:0x00007f30f720b5a0>:0x00007f30d08fe7a8>
Did you mean?  content_tag_without_haml
Extracted source (around line #148):
146
147
148
149
150
151
              
- if @listing.author != @current_user && @current_community.allow_free_conversations?
.listing-author-contact
%a#listing-contact{href: contact_to_listing_path(:listing_id => @listing.id.to_s), :class => "listing-author-contact-button"}
.content
= t(".contact")

Rails.root: /root/sharetribe

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"locale"=>"ar", "id"=>"548-myh-hlwh-lmyh-ltbyy-at"}

Response

Headers:

None