I'm getting an error when I start rails in development
ActionController::UrlGenerationError - No route matches {:action=>"index", :client_id=>"bd881667-ee11-441e-a98f-6f6a6005435a-53d08ea16f47a449a12861c8ebf6e1d3", :controller=>"reception"}
It seems to be coming from a link:
reception_index_url
rake routes shows
reception_index GET /reception(.:format) reception#index
so the route is there but I'm guessing :client_id is the problem. I have added mount HyperMesh::Engine => '/rr' to routes.rb
What am I missing?
Related
rake routes
this is my routes file
but when I make request '/', I got error
F, [2020-02-12T04:57:06.400949 #21830] FATAL -- : [eac71eea-131f-4edc-8c7f-7681d02c6824] ActionController::RoutingError (No route matches [GET] "/"):
it's working in my local.
I set :server_mode in secrets.yml, and It worked.
but, in production, it's not working.
I had to make routes in routes.rb not admin_routes.rb.
What should I do?
I have a project on ruby on rails and I did a scaffold, then I got an error that No route matches [GET] "/info/routes" and then I added this line to routes.db.
root :to => 'index#index'
And now it is giving me this error I cant find the solution.
ActionController::RoutingError (uninitialized constant IndexController Did you mean? IndexError):
Anybody knows the solution?
Actually I was doing a API project but it was complaining that there were no index. I modified to root :to => 'alunos#index' and it worked!
I am trying to port a working rails 2.4 app to rails 4.2. I cannot get the routing to work.
the URL of x.pdf is broken into id.format and passed as params to a report controller.
in Rails 2.4 I have
map.report ':id.:format', :controller => :reports, :action => :generate
in Rails 4.2 I am trying to use
get ':id.:format' => 'reports#generate'
but when i run the app and browse to http://www.example.com/x.pdf, i get the fatal error
ActionController::RoutingError (No route matches [GET] "/x"):
When I run rake routes I get:
Prefix Verb URI Pattern Controller#Action
GET /:id.:format reports#generate
I am using Ruby 2.3.0, Rails 4.2.5, NGINX 1.9.9, Passenger 5.0.23
Any help would be appreciated!
You should change get ':id.:format' to just get ':id'
When I am doing rake db:migrate I am getting the below error.
rake aborted! NameError: uninitialized constant RailsAdmi
I checked an answer where It is said that there's some path set for rails admin in the routes file, I need to remove the same from it.
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
devise_for :users
resources :users
This is part of my route file. Even If I am removing this line, I am getting the same error.
In another answer It said to upgrade rails, I did that as well, but it gives same error.
Please help.
I have a rails app with a cappuccino front end that I am trying to deploy onto Heroku.
The app works fine when I run it on localhost using WEBrick, but when I push onto Heroku I get the error message ActionController::RoutingError (No route matches "/"):
Here is the contents of the routing file:
CappcourceWs::Application.routes.draw do
resources :transaction_logs
resources :users
end
Is there a route that I have failed to define?
Doesn't look like a heroku-specific problem. My first guess is you need to add a root route, such as:
CappcourceWs::Application.routes.draw do
root :to => 'users#login'
resources :transaction_logs
resources :users
end
...or whatever the appropriate action/view is in your case.