我已經開始學習Rails,直到現在它還是很好。Ruby On Rails路線問題
我使用HAML和這個對我index.haml
= submit_to_remote "submit_btn", "Create", :url => {:controller => "queries", :action => "create"}, :method => "post"
= submit_to_remote "exe_btn", "Execute", :url => {:controller => "queries", :action => "execute"}, :method => "post"
試圖運行它
No route matches {:controller=>"queries", :action=>"execute"}
只要我刪除了這條線時,它給我回這個錯誤
= submit_to_remote "exe_btn", "Execute", :url => {:controller => "queries", :action => "execute"}, :method => "post"
它的工作沒有問題。
有誰知道我做錯了什麼,對我有什麼建議嗎?
乾杯
EEF
爲快速響應而歡呼!現在工作正常。再次感謝!! – RailsSon 2009-10-02 16:54:03