search for: unknownaction

Displaying 20 results from an estimated 39 matches for "unknownaction".

2006 Feb 08
2
NameError (uninitialized constant UnknownAction)
...I wanted to add a rescue_action_in_public to email me when there are errors. So I followed the example from the agile book (p. 464). Pretty much word for word. Here''s the error I''m occasionally seeing in the production.log. Any ideas as to why it thinks ActionController::UnknownAction is uninitialized? NameError (uninitialized constant UnknownAction): /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:195:in `const_missing'' /app/controllers/application.rb:13:in `rescue_action_in_public'' /usr/local/lib/ruby/gem...
2006 Feb 07
1
AWDWR: NameError (uninitialized constant UnknownAction) in rescue_action_in_public
I copied (and modified) this code from AWDWR: def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render :template=>''/error'', :layout=>''application'', :status=>''404 Not Found'' else render :template=>''/error'', :layout=>''application'', :status=>''500 Error'' end Not...
2006 Mar 07
17
Handling Erros from AWDWR
I''m getting to the point now where I really need to start trapping the errors. So from my AWDWR book, I added the following directly from the book into application.rb... def rescue_action_in_public(exception) case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render(:file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") SystemNotifier.deliver_excep...
2008 May 11
2
UnKnownAction exception
Hi all, i''m new in ruby on rails. i created a controller which has 2 views index, add_to_cart & inside index i created "button_to" which references to add_to_cart view, but when i click on this button UnKnownAction exception appear to me, i don''t know why this happen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3...
2006 Jul 04
0
ActionController::UnknownAction hangs application
I''m trying to override rescue_action_in_public() using the PP example, but my application hangs every time I generate an error. def rescue_action_in_public(exception) case exception.class when ActiveRecord::RecordNotFound, ActionController::UnknownAction render( :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render( :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") email = SystemNotifier...
2006 Sep 01
0
Why prefix ActionController::UnknownAction with ::?
In my application.rb''s rescue_action_in_public, why do I need to prefix ActionController::UnknownAction with ::, when ActiveRecord::RecordNotFound (no :: prefix) works? If I don''t prefix the former, I get an unknown constant (or similar) error. Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are s...
2009 Aug 07
4
ActionController::UnknownAction (No action responded to 22.
...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 vi...
2006 Jun 07
3
ActionController::UNKnownAction (No action responded to crea
...e 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_wi...
2007 Jan 20
1
Missing action error not being caught
I keep getting a blank page containing only the following: "There was a controller specfic error processing your request." Though I have the following in my application.rb def rescue_action_in_public(exception) case exception when UnknownAction, ActiveRecord::RecordNotFound then render :controller => "application", :action => "error_404", :status => 404 else render :text => "errors/unhandled", :status => 505 end end --~--~---------~--~----~---------...
2007 Nov 23
12
namespaced controllers
Out of curiosity, I''ve seen the following fail: module Admin describe MyController ... end end But this works fine: describe Admin::MyController .. end Why? Scott
2007 Jan 15
5
ActionController::UnknownAction (No action responded to xxx)
...uot;=>"push", "id"=>"27", "controller"=>"admin"} [4;36;1mUser Columns (0.016000) [0m [0;1mSHOW FIELDS FROM users [0m [4;35;1mUser Load (0.000000) [0m [0mSELECT * FROM users WHERE (users.`id` = 1 ) LIMIT 1 [0m ActionController::UnknownAction (No action responded to push): C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in `perform_action_...
2010 Oct 28
4
how do i find the trigger of an 'unknown' action
..., DB: 90) | 200 OK [http://192.168.2.9/xyz/99] SQL (1.4ms) SET NAMES ''utf8'' SQL (0.7ms) SET SQL_AUTO_IS_NULL=0 Processing xyzsController#images to gif (for 192.168.2.3 at 2010-10-28 15:22:35) [GET] Parameters: {"id"=>"loading"} ActionController::UnknownAction (No action responded to images. then to stop the error, i created an action plus view, although it doesnt get rendered. > how can i find out who is triggering that action? is there a way at all? > i do have a suspicion that this is coming from one of those lightbox olugins.... thx -- Y...
2005 Dec 16
1
Exception Locations?
I am trying to locate the following in the current 1.0 source tree: ActiveRecord::RecordNotFound ActionController::UnknownAction Looking at the API docs, I''ve been unable to track these down. Can someone help?
2007 Sep 08
1
Unknown Action doesn't raise exception ?
As I am in development environment, I wrote in my config/environment.rb ActionController::Base.consider_all_requests_local = false in my application.rb, I wrote def rescue_action_in_public(exception) case exception when RoutingError, UnknownAction render :file => "#{RAILS_ROOT}/public/404.html", :status => 404 else logger.error "Error raised: " + exception.to_s render :file => "#{RAILS_ROOT}/public/500.html", :status => 500 end end trying to...
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
...licationController def goodbye render :text => ''Goodbye.'' end end Requesting /fred/hello still gives the correct page (as it should), but now ''rake test_plugins'' fails with: 1) Error: test_hello(FredControllerTest): ActionController::UnknownAction: No action responded to hello ... ./vendor/plugins/my_engine/test/functional/ fred_controller_test.rb:16:in `test_hello'' In other words, as soon as I define a controller in the app that is the same as a controller in the plugin, the engine tests use only the code from the a...
2006 Feb 16
3
rescue_action_in_public question
...book to handle errors and email serious ones to me. In my application.rb controller: def rescue_action_in_public(exception) logger.error("rescue_action_in_public executed") case exception when ActiveRecord::RecordNotFound, ActionController::RoutingError, ActionController::UnknownAction logger.error("404 displayed") render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else logger.error("500 displayed") render(:file => "#{RAILS_ROOT}/public/500.html", :status => &quo...
2005 Aug 06
3
Macromedia Flash Loading Issues
...to load the Flash media partial. Processing RegistrationController#ads (for 127.0.0.1 at Sat Aug 06 12:08:44 EDT 2005) Parameters: {"action"=>"ads", "id"=>"nhk-468x60.swf", "controller"=>"registration"} ActionController::UnknownAction (No action responded to ads): For some reason. Rails is taking the Flash media code and thinking that it''s another controller/action. This behavior is completely puzzling to me. The only think I can think of is the HTML <param> tags are screwing with Rails logic. Here is the...
2006 Jun 30
1
Taking Control of Un-handled Exceptions
Greetings, I''m trying to catch all un-handled exceptions. I''m having problems handling the RoutingError and UnknownAction exceptions. I''ve added the following to my application controller as a protected method: def rescue_action(exception) render(:text => "error") end As far as I understand, this should catch all uncaught exceptions and override the rails default "rescue_action"...
2005 Dec 18
2
Default routes for unknown actions
Hi folks- I have the following map for default ''junk'' routes: map.connect ''*anything'', :controller => ''welcome'', :action => ''unknown'' Which works just fine for a URL like: "mysite.com/junkjunkjunk" However, it still tries to resolve an action when I do: "mysite.com/my_controller/junkjunkjunk"
2006 Nov 04
1
layere dispatching - please help!
...t;=>"car", "controller"=>"backend", "methodCall"=>{"methodName"=>"FindCarByName", "params"=>{"param"=>{"value"=>{"string"=>"711N7013T1"}}}}} ActionController::UnknownAction (No action responded to car): I can''t, for the life of me, see what I''ve missed. Can anyone help? Thanks, Bealach