Ruby Rails
2006-Jun-07 08:51 UTC
[Rails] Re: ActionController::UNKnownAction (No action responded to
Hi Ajay, Sorry for not being clear. Let me quote it again. When I work on windows (in development mode) I don''t get any UnKNOWN Action error. I get it ONLY on Linux (in production mode) while creating new record. In this process "create" action is being called (and should ideally work) but for some reason it is not finding the "create()" in my controller. My View: new.rhtml <%= start_form_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= submit_tag "Create" %> <%= end_form_tag %> My Controller: abc_controller.rb def create @release = Release.new(params[:release]) if @release.save flash[:notice] = ''Release was successfully created.'' session[:swrelease] = @release.swrelease render :action => ''fileupload'' else render :action => ''new'' flash[:notice] = ''Row already present!'' end end It is not creating record so I would assume it wouldn''t go till fileupload or new action. It is failing before it reaches these points with the error ActionController::UnknownAction (No action responded to create): /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /scratch/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack- .... (as pasted above) /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 /scratch/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' script/server:3 Please help understand this strange behaviour. Thanks -- Posted via http://www.ruby-forum.com/.
Ruby Rails
2006-Jun-07 08:53 UTC
[Rails] ActionController::UNKnownAction (No action responded to crea
Hello All, I''ve developed RoR on windowsXP have deployed that on Linux. Everythings works fine when working on windows. Things are fine on Linux too untill I try to create new entry. I tried but couldn''t find any relevent information why it should happen only to this "specific" create action. I''m saying this because different create on other forms are working ok. But this is errorring out with the following log tail. ActionController::UnknownAction (No action responded to create): /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /scratch/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'' /scratch/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /scratch/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 /scratch/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 /scratch/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' script/server:3 My Controller: def create @release = Release.new(params[:release]) if @release.save flash[:notice] = ''Release was successfully created.'' session[:swrelease] = @release.swrelease render :action => ''fileupload'' else render :action => ''new'' flash[:notice] = ''Row already present!'' end end View have: fileupload.rhtml I''ve spent hours by now figuring out the cause. Any ideas why it is not getting create method? Thanks -- Posted via http://www.ruby-forum.com/.
Ajaya Agrawalla
2006-Jun-07 08:58 UTC
[Rails] Re: ActionController::UNKnownAction (No action responded to
Ruby Rails wrote:> Hello All, > I''ve developed RoR on windowsXP have deployed that on Linux. Everythings > works fine when working on windows. Things are fine on Linux too untill > I try to create new entry. I tried but couldn''t find any relevent > information why it should happen only to this "specific" create action. > I''m saying this because different create on other forms are working ok. > But this is errorring out with the following log tail. > ActionController::UnknownAction (No action responded to create): > > end > > > View have: > fileupload.rhtml > > > I''ve spent hours by now figuring out the cause. Any ideas why it is not > getting create method? > ThanksThe situation is not clear from this example but I am sure you have form action wrong. Look in your fileupload.rhml file and see what form action it. Use form_tag to call the appropriate controller and action; you would be fine. ajay -- Posted via http://www.ruby-forum.com/.
Ajaya Agrawalla
2006-Jun-07 08:59 UTC
[Rails] Re: ActionController::UNKnownAction (No action responded to
Ruby Rails wrote:> Hi Ajay, > Sorry for not being clear. Let me quote it again. When I work on windows > (in development mode) I don''t get any UnKNOWN Action error. I get it > ONLY on Linux (in production mode) while creating new record. In this > process "create" action is being called (and should ideally work) but > for some reason it is not finding the "create()" in my controller. >> > Please help understand this strange behaviour. ThanksHey there Try <%= start_form_tag :controller => ''abc'', :action => ''create'' %> and tell me if you see the same problem. As I am thinking what else can go wrong. So try to be specific and see whether u see the problem again. HTH ajay -- Posted via http://www.ruby-forum.com/.
Maybe Matching Threads
- ActionController::UnknownAction (No action responded to xxx)
- NameError (uninitialized constant UnknownAction)
- ActionController::UnknownAction (No action responded to 22.
- AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
- ActionController::UnknownAction hangs application