Displaying 20 results from an estimated 80000 matches similar to: "route match error with 2 parameters"
2011 Jul 14
1
RoutingError with RSpec Controller test on Scoped Route
So I have a route that looks like this:
scope "4" do
  scope "public" do
    scope ":apikey" do
      resources :shops
    end
  end
end
And a bunch of controller specs, an example of which looks like this:
describe ShopsController do
  describe "when responding to a GET" do
    context "#new" do
      it "should create a new instance
2010 Dec 22
1
'No route matches' error with select_tag
Rails 3: I have a view books/:id/show.html.erb - in the view, I have a form
with a select tag to pick a template, that on dropdown should submit the
form which rerenders the page based on the selection:
 <%= form_tag book_path(@book) do %>
>
>  <%= select_tag "template[]",
>> options_for_select([["Template1","template1"], ["Template2",
2011 Apr 07
3
[Rails 3] No route matches error using RSpec even though route DOES match
I''ve recently run into a really weird situation that I''m just not sure
what''s going on here.  I''m trying to write a route that will allow
searches to be done via GET requests (generally a good idea since it''s
just retrieving information, helps for links and SEO, etc.), and I
have the route properly set up and can access it in development mode
just fine,
2011 Mar 02
1
Member route error
I''m getting a RoutingError for a member route I can''t figure out. I''m
posting a simple form that has a submit button as a confirmation step.
Here''s the route:
# routes.rb
resources :orders do
  post ''confirm'', :on => :member
end
1) "rake routes" shows it''s there:
confirm_order POST   /orders/:id/confirm(.:format)
2010 Nov 10
1
rails "path_prefix" produces no correct verb route evaluation
Hi guys! ;)
If you set "routes.rb" as:
   map.resources :pocoyo
You have RESTful rails routes facilites. Ok, let''s focus on these two
maps:
   "http://domain.com/pocoyo" [GET] is mapped to "pocoyo" controller
and "index" action.
   "http://domain.com/pocoyo" [POST]  is mapped to "pocoyo" controller
and "create"
2012 Sep 16
1
“Routing Error No route matches {}” when omniauth failed on registration
(Original question was asked here: 
http://stackoverflow.com/questions/11506734/routing-error-no-route-matches-when-omniauth-failed-on-registration
)
I am using omniauth-identity and configure its "fail on registration".
My files:
config/initializers/omniauth.rb
OmniAuth.config.logger = Rails.logger
Rails.application.config.middleware.use OmniAuth::Builder do
  #...
  provider
2012 Oct 23
0
route problem
Hello 
I have this routes.rb
Tamara::Application.routes.draw do
  ActiveAdmin.routes(self)
  devise_for :admin_users, ActiveAdmin::Devise.config
  resources  :users
  resources :category do 
     resources :berichten
  end 
end
So I thought that localhost:3000/<category>/bericht/new I could write a new 
bericht which is stored in the <categoryname>
But when I look at rake routes
2011 Oct 06
0
Rake Routes Blank on upgrade to Rails 3
I have just upgraded an app to rails 3 following the railscast
screencast.  I have installed a blank application inside the app to be
upgraded with:
rails new .
I have replaced all the the main files.
When I run rake routes I get no output.
routes.rb:
App::Application.routes.draw do
  resources :products
end
(ie, just the default file with an example uncommented)
I have tried a number of
2010 Nov 04
0
Rails routing issue
Within a rails app I''ve got a special url (/profile) that I''m mapping
to the user controller to allow a user to view and edit their profile.
I made the following entries into my route file so that the "get" for
profile will route me to the profile action in the user controller and
the "post" for profile will route to the update_profile action in the
user
2010 Oct 07
5
ActionController::RoutingError (No route matches "")
ActionController::RoutingError (No route matches "/atweet"):
Unsure on why routing to my view isn''t working. controller appears to be
functioning, however the view isn''t work, when I attempt to go to it,
this happens... sniff... sniff.... help???
I don''t get routes.rb in rails...
-- 
Posted via http://www.ruby-forum.com/.
-- 
You received this message
2010 Oct 27
0
Help with routes
Switching our routes file from Rails2 to Rails3 DSl uncovered an odd
situation, of my own making, but I am having some difficultly imagining
how to fix it.
Basically I have a commonplace: user -> user_role (clearance) <- role
type arrangement where:
User
  has_many  :roles, :through => :clearances
  has_many  :clearances
Clearance
  belongs_to :role
  belongs_to :user
and
Role
 
2010 Dec 03
0
Rake Routes project_attachment_path
Hello, I''m trying to create a project_attachment_path
In my routes I have:
	resources :projects do
  	collection do
        get "attachments/:id/:style.:format" =>
"attachments#download", :as => :attachment
  	end
    end
**Problem is in RAKE ROUTES:**
    attachment_projects GET    /projects/
attachments/:id/:style.:format
2011 Oct 05
0
Optional Dynamic Prepended Route via scope
Hello,
Say I have the following in my routes file:
scope "(/:organization)" do
  resources :systems, :except => [:destroy] do
    member do
      get :packages
    end
  end
end
  resources :dashboard do
    collection do
      get :notices
  end
The organization can be changed by the user and various resources such
as systems are scoped off of the organization.  So, the
2010 Aug 21
4
No route matches?
Hi all,
I''m coming from the PHP world and I''m trying to learn Ruby and Rails.
I''m having a problem where I keep getting the error "No route matches /
home/view" even though I have it defined it. I''d appreciate any help
on this. I''m using rails 3.0 and the setting for the environment is
"development".
# routes.rb
2012 Feb 12
3
Rails routes - destroy
Can''t figure out how duplicate routes are differentiated by rails  ...
Read routing from inside out and API as well as a few tutorials but
still don''t get it!!!  For example...
routes.rb
   resources :minisections do
      resources :questions
    end
rake routes:
minisection_question GET
/minisections/:minisection_id/questions/:id(.:format)
questions#show
                    
2010 Mar 23
1
:has_many and :controller specified in routes.rb
Have an app using older version of Rails (2.3.2) that I need some
routing assistance with if anyone has a minute.
The app was originally designed to be purely html view, and an xml and
json api was hacked on. To keep it clean, we are now moving the first
version of the api (v1) under its own directory (v1) under app/
controllers but still responding to the old paths.
One of the parts of the new
2012 Oct 18
1
routing issue with mounted engine - Rails 3.2.8
I mounted the Forem::Engine in my app
 MyApp::Application.routes.draw do
    scope "/:locale" do
    ...
    resources :sites, :only => [:none] do
      get ''home'', :on => :collection
      get ''events'', :on => :collection
   end
    ..
    mount Forem::Engine, :at => "/forums",  :as => :forums,
constraints: lambda { |r|
2010 Jun 21
4
Failing Routes in deployment
I have an app that has the following in the routes file:
  namespace "admin" do
    # ADMINISTRATIVE ROUTES ONLY
    root :to => ''home#index''
    resources :comments do
      member do
        get :approve
        get :reject
      end
    end
    resources :users do
      member do
        get :block
        get :unblock
      end
    end
  end
When browing to
2011 Sep 07
3
Method get of ActionController::TestCase ignores routes.rb?
Hi!
I''m running into issue which seems to indicate that 
ActionController::TestCase.get() method ignores what I have in routes.rb.
Happens in 3.0.10 and 3.1.0 too.
I have the following RSpec2 test of my XmlRpcController#index action:
it "should get nothing in response to GET request" do
  get :index
  response.response_code.should == 400 #bad_request
end
And the only line
2012 Dec 12
1
Devise route for confirmation error with :locale
Rails 3.1.3
I have setup devise and i18n .  In routes.rb
    scope "/:locale" do
        devise_for :users, :controllers => { :registrations =>
''registrations'' }
    ...
    end
But in the process of confirmation,
No route matches {:action=>"create",
:controller=>"devise/confirmations",