I try to switch my application from Rails 2.2.2 to Rails 2.3.3.
In namespace :admin I have a resource-based controller. See controller
class Admin::OSystemsController < Admin::BaseController
def index
…
end
def edit
…
end
def update
…
end
end
Resource is added to routes.rb like
map.namespace :admin do |admin|
…
admin.resources :o_systems, :only => [:index, :edit, :update]
…
end
I go to edit page (see view)
…
<% form_for([:admin, @o_system]) do |f| %>
<%= f.error_messages %>
…
<% end %>
I press submit and exception is thrown:
ActionController::UnknownAction (No action responded to 22. Actions:
edit, index, and update):. Here “22” is the id of the object.
Everything works properly in development, error is only in production
environment and only ONE time. If I submit form second time then
everything goes well.
Please, help.