search for: routingerror

Displaying 20 results from an estimated 147 matches for "routingerror".

2008 Apr 30
7
rescue_from issue with AWS - uninitialized constant
The new rescue_from in edge rails seems to conflict with ActionWebService, which I need for various other purposes. When I define, for example (with AWS gem installed): <b>rescue_from ActionController::RoutingError, :with => :page_not_found</b> I get the exception: <b>uninitialized constant ActionWebService::Dispatcher::ActionController::Base</b> OK, so AWS interfers with the inheritance chain I guess, but if I define: <b>rescue_from Object::ActionController::RoutingError, :with...
2011 Apr 12
0
Suppress ActionController::RoutingError in logs
My rails log get chock a block with things like <<<<<<<<<<<< ActionController::RoutingError (No route matches "/admin/Y- ivrrecording.php" with {:method=>:get}): ... ActionController::RoutingError (No route matches "/manager/html" with {:method=>:get}): .. ActionController::RoutingError (No route matches "/webdav/test" with {:method=>:get}): ... Acti...
2006 Jul 24
1
All functional tests fail with RoutingError
All, I''m using InstantRails 1.0 on Windows XP and all my functional (controller) tests fail with ActionController::RoutingError, although the actions work OK through a web server/browser. Here''s an example of an error: 1) Error: test_create(AdminControllerTest): ActionController::RoutingError: No url can be generated for the hash {:controlle r=>"admin", :action=>"create"} generat...
2006 Feb 26
0
rescue_action with RoutingError not loading ApplicationController/ApplicationHelper
Why is it that when rescue_action is called with any exception except for RoutingError, "self" refers to a controller within my application, but when there''s a RoutingError, "self" refers to an object of ActionController::Base? This makes some sense because a "RoutingError" implies that no controller was found to process the request. However,...
2006 Feb 16
3
rescue_action_in_public question
...n_in_public example from the Agile 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.h...
2007 Feb 10
3
recognize_path discrepency
hey all - wondering if someone would relive my confusion... given a model called say Meeting and a route as "map.resources :meetings" in the console: >>r=ActionController::Routing::Routes >>r.recognize_paths "/meetings" =>{:action="index",:controller=>"meetings"} all works as I expect, but if I do >>r.recognize_paths
2006 Jul 19
1
RoutingError -- but only for one controller
This one has had me stumped all morning, so any ideas would be a big help. I''m getting the following error for any request to one of my controllers, ''client'': ActionController::RoutingError (Recognition failed for "/client/new"): /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in `recognition_failed'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:478:in `recognize!'' /usr/lib/ru...
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ... Why doesn''t rescue_from ActionController::RoutingError work witht he code from http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html class ApplicationController < ActionController::Base helper :all # include all helpers, all the time # See ActionController::RequestForgeryProtection for details # Uncomment the...
2006 Mar 28
2
Newbie question - ActionController::RoutingError
When i run my server and just chk in browser i get --------------------------------------------------- ActionController::RoutingError (Recognition failed for "/rails_info/properties"): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:488:in `recognition_failed'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/routing.rb:478:in `recognize!...
2006 Mar 07
2
webrick RoutingError
problem: webrick will start a rails server, but I cannot access my application. I get the error: Processing Base#index (for 127.0.0.1 at Tue Mar 07 19:16:58 CET 2006) Parameters: {} ActionController::RoutingError (Recognition failed for "/keywordeditor"): my application is called keywordeditor. I am starting the server from the correct place with the correct command (I already deployed several rails apps successfully before). I checked that the database is created with the correct tables. I...
2011 Nov 26
1
ActionController::RoutingError (No route matches [GET] "/image.jpg"):
...the image in the browser, but unfortunately, on the browser i am unable to view the images, I am getting following errors in development mode. Haven''t tested yet in production. Started GET "/winecountry_part2.jpg" for 127.0.0.1 at 2011-11-26 12:56:40 -0800 ActionController::RoutingError (No route matches [GET] "/ winecountry_part2.jpg"): Rendered /Users/jayparteek/.rvm/gems/ruby-1.9.2-head@default/gems/ actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/ routing_error.erb within rescues/layout (0.6ms) -- You received this message because you are subscr...
2011 Jul 14
1
RoutingError with RSpec Controller test on Scoped Route
...@shop.should_not_be_nil end end end end In rake routes, as well as via a web browser, this controller/action works fine. However, RSpec throws: 1) ShopsController when responding to a GET#new should create a new instance of the shop class Failure/Error: get :new ActionController::RoutingError: No route matches {:controller=>"shops", :action=>"new"} # ./spec/controllers/shops_controller_spec.rb:9:in `block (4 levels) in <top (required)>'' When I remove the scope statements from the route, the tests work fine. Is there a way to "inform&quo...
2010 Jun 15
3
RoutingError
...the routes. But i am getting error at line 23. i have @user variable. user_contact_path(@user.id) I want generate url as : users/3/contacts to invoke contacts controller''s create action --------------------------------------------------------------------------------- ActionController::RoutingError in Contacts#index Showing app/views/contacts/index.html.haml where line #23 raised: user_contact_url failed to generate from {:controller=>"contacts", :user_id=>2, :action=>"show"}, expected: {:controller=>"contacts", :action=>"show"}, diff:...
2007 Mar 02
5
ActionController::RoutingError
plz give me the solution to solve the below error ActionController::RoutingError ActionController::RoutingError in Issues#new Showing app/views/issues/_issue.rhtml where line #1 raised: issue_url failed to generate from {:controller=>"issues", :action=>"show", :id=>nil}, expected: {:controller=>"issues", :action=>"show"}...
2005 Dec 23
0
RoutingErrors Showing Up in Production Log
I am seeing errors of this type: ActionController::RoutingError (Recognition failed for "/blah/50112.mp3"): Showing up in production.log. I''d like to suppress as they are ''known'' and not real errors. I have my logging set to: config.log_level = :error In environmnent.rb. What can I do to remove these errors from my log?...
2007 Feb 08
0
ActionController::RoutingError in actionpack-1.13.2
The specific error is: ActionController::RoutingError (no route found to match "/application/setservice" with {:method=>:post}) With actionpack-1.12.5 the default route handled /application/setservice. I have found a workaround by adding the route map.connect ''application/setservice'', :controller=>''applicati...
2007 Jun 26
1
ActionController::RoutingError (no route found to match "/ja
Hi All, I have an application running on mongrel. i am getting the access of application .but it seems that its not picking up stylesheets,javascript. My production.log contains the error: ActionController::RoutingError (no route found to match "/javascripts/application.js" with {:method=>:get}): i have all .ccs and .js file under public directory of application. Thanks in Advance for Help. Vimal Bansal -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~...
2008 Oct 17
0
RoutingError from css background image url
In my css file, I have a css element that has a background image that''s defined as background: url(/images/global/tab-arrow.gif) no-repeat 16px 8px ; This throws a Routing Error when an element with that class gets rendered ActionController::RoutingError (No route matches "/images/" with {:domain=>"localhost", :method=>:get, :subdomain=>nil, :host=>"localhost"}): /vendor/rails/actionpack/lib/action_controller/routing/ recognition_optimisation.rb:67:in `recognize_path'' It works fine when the im...
2010 Oct 05
0
Ruby with apache ActionController::RoutingError (No route matches "/"):
...Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> But when I try to access my program through localhost/app I get error 404 and in the production.log i find: Started GET "/app" for 192.168.1.3 at Tue Oct 05 18:18:24 +0200 2010 ActionController::RoutingError (No route matches "/"): All my php software still runs fine under localhost though. This is probably easy to fix but I have been trying for days and still can''t get it to work, whats wrong? -- You received this message because you are subscribed to the Google Groups "Rub...
2009 May 02
10
Problem verifying routing error
Hi, When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having a new problem verifying routes that should not exist. This is to support something like this in routes.rb: map.resources :orders do |orders| orders.resources :items, :except => [:index,:show] end I used to use lambda {}.should_raise( routing error ), but it stopped detecting any raised error.