1
我想一起工作tarnfeld的PusharChat-Rails推聊天示例錯誤
我下載的文件,沒有通常的bundle install
& db:migrate
。
我PusherChat-Rails的改變了API密鑰/應用/視圖/佈局/ application.html.erb
但我得到這個錯誤
NoMethodError in Chat#view
Showing /Users/gkolan/work/PusherChat/app/views/chat/view.html.erb where line #22 raised:
undefined method `auto_link_urls' for #<#<Class:0x007fdddb772818>:0x007fdddb710230>
Extracted source (around line #22):
19: <ul id="messages">
20: <% @messages.each do |message| %>
21: <% user = ChatUser.find(message.user_id) %>
22: <li<% if user.id == @user.id %> class="you"<% end %>><strong><%= user.nickname %></strong> said:<br><%= auto_link_urls(message.message, { :target => "_blank" }) %></li>
23: <% end %>
24: </ul>
25: <div id="message-overlay"></div>
Rails.root: /Users/gkolan/work/PusherChat
我認爲它是一個非常簡單的錯誤。你能幫我解決這個問題嗎?
在此先感謝!