similar to: routing wierdness

Displaying 20 results from an estimated 40000 matches similar to: "routing wierdness"

2006 Apr 10
1
routing
I have this in my routes.rb: ... map.connect ":action/:id", :controller => "default_controller" .. It worked nicely, until I added a second controller to my project. The new (second) controller is "Admin". The problem is I cant reach the actions in the second controller. http://mysite.com/some_action is routed to some_action in default_controller. That is
2006 Mar 03
1
Pagination and custom routing
Hello all, I''m new to RoR but loving leanrning it and wish i''d found it earlier instead of spending so much time with PHP. I have a problem with a custom routing and pagination... In my application, users can save their favourite bookmarks, and can view each others favourites. I have set up rooting so they can do this easily by the URL www.mysite.com/username using the
2005 Nov 14
2
Routing lost
I have a server running Centos4. I found I was seeing some network problems so I tried "route" and found there was no routing. I thought reboot would solve it but it didn't. I had to manually enter a route to the default gateway, there is still no route to the loopback interface. How is this possible? I thought there was default routes built into the kernel, taken from
2007 Nov 27
1
routing
Hi all, My site uses subdomains to define an item. Eg http://itemname.mysite.com I fetch the itemname and render the appropriate site from that itemname. The subdomain is used everywhere (eg http://itemname.mysite.com/events, http://itemname.mysite.com/products/show/11, ...) I now want to give the user the possibilty to use a ''real'' domain like www.itemname.com that should
2006 Mar 30
0
Page navigation using named routes (need your help)
Hello, I want to use named routes to create page navigation. For instance I have these named routes: map.homepage ''/'', ... map.links ''/links'', ... map.catalog ''/products/catalog/'', ... map.catalog2 ''/catalog/:year/'', ... And then have a map which defines navigation on the basis of the named routes (just for imagination):
2012 May 27
2
Setting Up A Rails App With Passenger
Been trying to get Passenger installed and setup to run a rails app. Everytime I goto eaa.mysite.com in Firefox the web browser goes out to the Internet instead of serving up the website. Why does this occur? Below is part of the configuration for apache2.conf: ======================================================= # Setup a virtual host for the rails apps to run in. <VirtualHost *:80>
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"
2005 Dec 06
1
array of lists? is this the best way to do it?
[Q.] How to create an array of lists, or structures the most elegant way? There have been questions in the past but none too recently...I want to know if the following looks OK to you guys or if there is a better way to create an array of lists: # PREAMBLE ... JUST TO GET THINGS GOING makeList<- function(data, anythingElse) { rval <- list( data = data, anythingElse =
2006 Apr 21
4
Simple Controller/Routes Question
This is probably a very basic question, but what is the proper controller & routing setup if I''m setting up a RoR site with static pages, like: http://mysite.com/about http://mysite.com/services http://mysite.com/contact I want each of these pages to use a single template file that I can push content to. It seems like overkill to create individual controllers for about,
2010 Feb 02
0
Help needed in Routes
Hi All I am now using Rails 2.3.4 i would want to have a route like http://localhost:3000/mysite/questions/show.xml/question-title In Rails 2.1.2, i had used the format map.namespace :mysite do |mysite| mysite.show_question ''/questions/show.:format/:title'', :controller => ''mysite_questions'', :action => ''show'' end But now the same
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2011 Jun 01
2
Question about "null routing" calls to DIDs we don't handle
Hello, this is Jesse with Webformix. We are managing an Asterisk installation for residential VOIP service, and we are having a problem where all inbound calls to DIDs which are assigned to us by our wholesaler but not yet assigned to a downstream customer get caught in a routing loop. ** For example: we get assigned DID block 1230-1239 and only 1230-1233 are given to our customers, then our
2006 May 18
2
Help with Routes
I love the routes feature for RoR...until now. I''m trying to write tests to make sure my urls are correctly mapping to the routes I expect them to map to. This is driving me nuts because I simply can''t get any of my tests to pass. I have thus concluded that routes must work differently than I thought. I will try to explain my understanding of how routes work. Via this
2007 Feb 09
3
Re: URL issues
hello... On 2/8/07, cdvr <codecraig-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, > I watched the rails screencast on creating a blog in 15 minutes. > I followed along got it working on my home PC and I then uploaded it > to my web host. So I have, > > /home/<username>/blog > > I had to change some config in the blog app (i.e. production
2004 Jan 22
0
iproute2 source routing problem
Hi all, I am using a redhat 8.x linux box configured with zebra routing software which is also configured with ospfd I have 2 backbone routers running ospf connected to different isp''s I have 3 local routers also running ospf within themselfs and also with the 2 backbone routers (all are linux boxes) router A - backbone router 1 router B - backbone router 2 router C - local router 1
2006 Apr 17
1
problem with reverse mapping (url_for problem)
I modified my routes to that you can reach my index action by just typing in the site name (ie www.mysite.com). I did this by: map.connect '''', :controller => "pragmatic" I need to be able to do a url_for(:controller => ''pragmatic'') or url_for(:controller => ''pragmatic'', :action => ''index'') and have
2006 Dec 13
0
RE: Routing & NAT Problem take #2
Cross posted to Netfilter and LARTC... Grant & ArcosCom Linux User Thanks for your replies. Firstly, one problem was with my Token Bucket Filler on one of the interfaces, as it was dropping lots of packets and stopping connections from working over that interface. This lead to some strange results, with apparent partial success. Secondly, I''ve decided against trying to get it
2005 Dec 08
1
SwitchTower, Apache, and Routing Errors
Hello, I deployed a Rails App using Switchtower and now I''m getting a Routing Error to my Javascript and Stylesheet files. Has anybody else had this issue? Here is the log file. > ActionController::RoutingError (Recognition failed for > "/javascripts/prototype.js"): > /vendor/rails/actionpack/lib/action_controller/routing.rb:470:in >
2007 Jul 02
0
Multicast routing problem
Hi, I''m trying to route multicast between 2 LANs using a GRE tunnel. The setup is: B to C is a GRE tunnel running over PPPoE. B is the multicast router. A is on the same LAN as B. The same ethernet adapter is used for both the LAN and PPPoE connections. I''ve setup smcroute since I only need static routing. Multicasts sent from C (the remote machine) to B over the
2006 Mar 07
1
html extension?
First off please forgive me if this has been asked a thousand times. I have searched google without any luck. Basically what I would like to do is output the url with an html extension. Maybe an example would help. If I have in my controller: def index some stuff end I would get something like http://mysite/index I would like to convert is somehow to http://mysite/index.html