RESTful 應用程式
http://ihower.tw/rails4/restful.html===== button_to =====
如果用button_to,而產生route跟你要POST,後面補上
:method => :get
<%= button_to 'New event', new_event_path, :method => :get%>
這樣就ok~
解答來自下面連結
http://stackoverflow.com/questions/5221227/rails-button-to-fails-with-path-doesnt-exist-for-a-path-that-exists