Alexei Lexx
2009-Aug-07 08:10 UTC
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: [b]ActionController::UnknownAction (No action responded to 22. Actions: edit, index, and update):[/b]. 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. -- Posted via http://www.ruby-forum.com/.
Ilan Berci
2009-Aug-07 15:50 UTC
Re: ActionController::UnknownAction (No action responded to 22.
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?? -- Posted via http://www.ruby-forum.com/.
Alexei Lexx
2009-Aug-07 18:31 UTC
Re: ActionController::UnknownAction (No action responded to 22.
Ilan Berci 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. -- Posted via http://www.ruby-forum.com/.
Ilan Berci
2009-Aug-07 18:50 UTC
Re: ActionController::UnknownAction (No action responded to 22.
Alexei Lexx wrote:> > I use memcahed sessions.clear your memcached sessions prior to deployment to production.. development and production are using the same memcache? -- Posted via http://www.ruby-forum.com/.
Alexei Lexx
2009-Aug-08 08:52 UTC
Re: ActionController::UnknownAction (No action responded to 22.
Ilan Berci 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. -- Posted via http://www.ruby-forum.com/.