Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created July 10, 2011 16:46
Show Gist options
  • Save yaotti/1074685 to your computer and use it in GitHub Desktop.
Save yaotti/1074685 to your computer and use it in GitHub Desktop.
Started POST "/settings/update" for 127.0.0.1 at 2011-07-11 07:23:05 +0900
ActionController::RoutingError (No route matches "/settings/update"):
<%= form_for @setting, :url => '/settings/update' do |f| %>
<%= f.checkbox :foo %>
<%= f.submit %>
<% end %>
XXX::Application.routes.draw do
get 'settings' => 'settings#index'
post 'settings/update' # POST /settings/update => no route matches
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment