similar to: Route adds ?admin.html to the end of my URL

Displaying 20 results from an estimated 100000 matches similar to: "Route adds ?admin.html to the end of my URL"

2006 Nov 04
0
Question about named routes - getting "No url can be generated for the hash"
So I''ve decided to clean up the structure of my rails app and have been using named routes and storing certain controllers underneath other controllers where appropriate.. For example, I have an AdminController, as well as a ContentController. I decided to make ContentController a subclass of the AdminController, because the content management portion of the site is only accessible to
2011 Jun 09
1
subdomain based namespacing makes RSpec incorrectly state that the route doesn't exist
Hello, I''m doing namespace routing based on subdomain, rather than path, so that http://admin.example.com/pages leads to app/controllers/admin/ pages_controller.rb. Cucumber is following this fine, but RSpec is complaining that the requested route doesn''t exist even though "rake routes" shows the route. When I add a standard namespace below the "scope :admin"
2006 Jul 07
0
Re: url parameter :id with slash (/) failed to route
Alex Wayne wrote: >> Gary Lin wrote: >> My routes.rb is something like >> map.connect '':controller/:action/:id'' >> However, when a url request likes >> http://xxx/user/category/a/b >> However, :id has slash in it (a/b) will make rails fail to route. >> (apache fail, webrick works fine somehow) > Rails routes really
2009 Dec 06
9
Route error to Admin namespace
Hi. I have some apps that i have "admin" areas to the clients manager the app. This "admin" is a directory on my controllers path, like this: my_site --> app -->-->controllers -->-->-->admin And my controllers in "admin", i use the correct namespace(example for clients_controller): class Admin::ClientsController < AdminController Only doing
2006 May 31
1
url parameter :id with slash (/) failed to route
Hi there, My routes.rb is something like map.connect '':controller/:action/:id'' However, when a url request likes http://xxx/user/category/a/b My intension is to call :controller => ''user'' :action => ''category'' :id => ''a/b'' However, :id has slash in it (a/b) will make rails fail to route. (apache fail, webrick
2006 Aug 08
1
Named routes and url generation?
Hi all In my application I''ve some named routes defined this way... map.label_context1 '':context1/label'', :controller => ''mycontroller'' map.label_context2 '':context1/:context2/label'', :controller => ''mycontroller'' map.label_context3 '':context1/:context2/:context3/label'', :controller =>
2006 May 24
0
Routes recognition problem
Hiall, I have two modules for my controllers containing the following files /app/controllers/admin/new_controller.rb /app/controllers/admin/list_controller.rb /app/controllers/admin/sidebar_controller /app/controllers/community/input_controller.rb /app/controllers/community/sidebar_controller.rb Each of those controllers is declared with the appropriate module like so class
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
2006 Mar 06
0
Multiple actions for one route (making pretty URLs hit different actions)
Hi all, I''m trying to make pretty URLs using routes for some of my actions across different controllers. For example: http://www.example.com/london -> http://www.example.com/articles/show_by_name/london But if the id ''about'' couldn''t be found, then to search for it as another action, this time from the ''branch'' controller.
2006 Jul 11
0
dynamic routes from the url? is this even possible?
my quesion is...what is available to routes.rb that it creates the values of the symbols you define in the rules? what i mean by this is, is there a named variable that contains the url sent in the request that i can get at to force values into my rules? i''m trying to do the following: i have a url.. www.my_domain.com/abc/blogentry/show/1 and the rule.. map.connect
2011 Jan 07
2
"No route matches" error?
I am new Rspec and just started by generating a new controller on Rails 3. It generates some Rspec tests by default. I have a question about how to make them pass though. As it stands, I see this test in my terminal" > 1) BuildingsController GET ''show'' > should be successful > Failure/Error: get ''show'' > No route matches
2008 Apr 15
0
routing problem: map.testroute ":param1/:param2-:param3-:param4.html"
hi, I''m trying to create meaningful urls with routing extracting all params as specified: map.testroute ":param1/:param2-for-:param3.html" However this approach totally fails - it says Routing Error, No route matches "/aaaa/bbbb-for-ccc.html" with {:method=>:get} Then while browsing source code and some googling I''ve found that there is sth called
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
2008 Nov 09
0
Wildcard URL redirect via Rails Routes?
Hey all, I wanted to know if I can (and if it''s a good idea) to redirect old routes to other controllers/actions. In a previous version we had some routes like so "/public/username/some/other/variables". What would I need to do in my routes.rb file to make "/public/username/ *" redirect to "/username" or even a specific controller/action? Thanks in
2004 Apr 30
0
Load-balancing with multipath routes (1 NIC + 2 GWs)
Greetings, I''m trying to set up some sort of load-balancing on a Linux (Trustix) gateway by using multipath routes, however I''m stuck with some problems. The idea is that this gateway (odd as it may seem) only has one external interface, which should route packets to two different gateways (Ciscos). The gateway''s external interface and the routers are all on the same
2012 Feb 07
6
nested route not receiving :id parameter within controller spec
I''ve got a share method in my controller, and I have the following spec: describe PostsController do describe "#share" do it "doesn''t blow up" do post :share, :id => @post.id end # ... etc And... It blows up! Failures: 1) PostsController#share shares Failure/Error: post :share
2006 Jun 17
2
URL based on acts_as_tree using routes
Hi There! I''d like some feedback before I try to implement some funky rails routes based on an acts_as_tree model. I have a Page model that acts_as_tree. I''d like the URLs to look something like this: http://localhost/about-us/staff/jeff or, another example... http://localhost/what-we-do/products/our-great-cms/features/faqs/ So, as many sub-nodes the user creates,
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
2007 Nov 07
0
Named routes raising nil.rewrite error
Hi all. I''m having a little problem with named routes. I have the following named route: map.with_options :controller => ''snippets'' do |map| map.snippets ''faq/'', :action => ''index'' map.new_snippet ''faq/ new'', :action
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,