Rails create action Ajax returns Template Missing or Unknown Fomat -
i'm trying implement private_pub on one-to-one chat app, without private_pub works fine not ideal chat app since no websocket used autoupdates. tried implementing on railscasts of private_pub getting either template missing or unknown format. here code: routes resources :conversations resources :messages end i have button in user show page start chat(which creates/uses conversation , shows conversation show page 1 one chat box on facebook/gchat , conversation has many messages): <% unless current_user == @user %> <%= link_to "send message", conversations_path(:sender_id => current_user.id , :recipient_id => @user.id ), :method => :post, class: "btn btn-success btn-xs start-conversation" %> <% end %> conversation controller class conversationscontroller < applicationcontroller before_filter :authenticate_user! layout false def create if conversation.between(params[:sender_id],params[:recipient...