ActionController::UnknownAction (No action responded to 22

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.

Alexei Lexx wrote:

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.

Sounds like a stale session issue, are you clearing your sessions out
when you deploy to production??

Ilan B. wrote:

Alexei Lexx wrote:

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.

Sounds like a stale session issue, are you clearing your sessions out
when you deploy to production??

I use memcahed sessions.

Ilan B. wrote:

Alexei Lexx wrote:

I use memcahed sessions.

clear your memcached sessions prior to deployment to production…
development and production are using the same memcache?

No of course, development and productions are different servers.

I restarted memcached to clear sessions and then restarted mongrel.
Problem still exists.

Alexei Lexx wrote:

I use memcahed sessions.

clear your memcached sessions prior to deployment to production…
development and production are using the same memcache?