similar to: Can I let routes.rb take precedence over file names?

Displaying 20 results from an estimated 5000 matches similar to: "Can I let routes.rb take precedence over file names?"

2006 Jan 24
1
Query String in routes.
Is there any way to access the query string full request uri in routes.rb? I''d like to route requests for those going after my old application urls to my new rails application urls. The old app used /wiki.cgi?PageName The rails app uses /wiki/show/PageName Like... map.connect ''wiki.cgi'', :controller => "wiki", :action => "show", :id =>
2006 Feb 23
12
how to output something from within <% %> tags?
simple question: how do I output something from within <% %> tags? e.g. like ''echo'' in PHP. I thought it would be ''puts'' or ''print'' but neither seems to work. right now I always close the %> and open a <%= which is tedious. -- Posted via http://www.ruby-forum.com/.
2006 Mar 02
3
How to identify the browser?
I need to generate some browser-specific code; can I identify which browser is being used from within my RoR code? -- Posted via http://www.ruby-forum.com/.
2007 May 12
3
Setting form-values
Hi, I''ve recently had some trouble setting form values in my code - for example: require ''rubygems'' require ''mechanize'' def save(pagename, content, editsummary = '''') agent = WWW::Mechanize.new agent.user_agent = ''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'' page =
2006 Aug 14
4
Controller method problem
Hi, I have a def in my controller see below where i want to find the page object based on a parameter value and then use the page_id to then find all the contents that belong to that page in the same method. Controller def aboutus @page = Page.find_by_name(params[''About Us'']) @contents = Content.find(:all, :conditions => "page_id = #{@page.id}") end
2015 Aug 22
2
Russian wiki
On 22 August 2015 at 19:20, Ilyas Arinov <arinov.ilyas at gmail.com> wrote: > I have to update pages twice now to see its content. > > --> --> > > Traceback (most recent call last): > File "/usr/lib/python2.6/site-packages/MoinMoin/request.py", line 1207, in > run > handler(self.page.page_name, self) > File >
2006 Feb 21
5
how to include an html file?
I have a bunch of html files with partial page content. I''d like to be able to include the content of these files in my RoR views without having to change or rename them. In PHP I''d simply use include("file.html"); What is the RoR equivalent of this? render_file insists on it being an rhtml template, and render_partial requires me to rename the file. Ideally, I
2013 Aug 29
2
Multiple gateways
hello need a little help i have 2 NIC router with shorewall client PCs goes to internet fine with shorewall help. but i need to reroute traffic for one net via other gateway not ISPs. Gateway is on LAN NIC. 192.168.1.0/24 LAN x.x.x.x WAN router(shorewall) IP 192.168.1.15 i need to reroute traffic for 192.168.2.0/24 network to 192.168.1.1 gateway I know how to do it via route and iptables, bu just
2010 Apr 28
6
how to reroute all ADSL traffic via another server on the internet?
Hi all, Does anyone know, if it's possible to reroute all (i.e. HTTP / FTP / DNS / SMTP / POP3 / IMAP / etc) from an ADSL connected machine via another server, which is currently hosted with IS and has full internet access? i.e. Can I setup another machine, on a different public IP than the dynamic ADSL IP as default gw? OR do I need todo something on that machine to work as a router for
2012 Aug 22
3
Libvirt Seg Fault when compiling either 0.9.13 or 0.10.0-rc1
Hi all, I am trying to install a version of Libvirt that will be compatible with qemu-kvm-1.1 but I cannot seem to get Libvirt to compile. During the make portion of the install I get the following error: ... make[4]: Entering directory `/home/shawn/libvirt-0.10.0/docs' Generating 404.html.tmp /bin/bash: line 5: 59204 Segmentation fault /usr/bin/xsltproc --stringparam pagename $name
2004 Oct 10
1
using recent theora under Linux
Hello, in case somebody wants to test Theora without compilation, feel free to use konvalo.org's setup. It includes mplayer with theora from svn 2004-09-21 with Wim Taymans' mmx-patches from August 2004 applied (there are mplayer and mplayer.theora-mmx, the latter with decoder mmx-patches from VP3HoSwiYO) and a theora-encoder script (a bit slower than ffmpeg2theora as it runs several
2004 Oct 10
1
using recent theora under Linux
Hello, in case somebody wants to test Theora without compilation, feel free to use konvalo.org's setup. It includes mplayer with theora from svn 2004-09-21 with Wim Taymans' mmx-patches from August 2004 applied (there are mplayer and mplayer.theora-mmx, the latter with decoder mmx-patches from VP3HoSwiYO) and a theora-encoder script (a bit slower than ffmpeg2theora as it runs several
2006 Mar 27
1
rio instabilities
I''m having some serious problems with rio (rio.rubyforge.org) within my Rails app and I was wondering if you lot could offer any advice. So: I''m writing an app that generates folders full of content. The rough process of what happens when you run the "Generate" method on a "Site" object is: it copies a template directory to a directory named (site.directory)
2004 Nov 16
2
share bandwith between vpns
I have clients, which connectin to Internet through vpn. I want to dynamically share bandwith between vpn connections, so if there few connections, then they get all bandwith, if more then they get their minimal guaranteed bandwith. my idea is: ip-up.local: tc class add dev $DEV parent 1:1 classid 1:2${1/ppp/} htb rate $[$RATEUP/$VPNS]kbit ceil ${RATEUP}kbps tc filter add dev $DEV protocol ip
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
Hello, ffmpeg2theora (with encoder mmx patches) is available on konvalo.org. You can run it on Linux (2.6.x), FreeBSD (5.x) and NetBSD (2.x) on Intel x86. ffmpeg2theora may be considered the recommended Theora encoder. The author of the program is Jan Gerber @ v2v.cc Those of you who already use Konvalo.org do not need to do anything, the program is in your PATH. Otherwise see
2005 Mar 30
3
ffmpeg2theora with mmx patches is available on konvalo.org
Hello, ffmpeg2theora (with encoder mmx patches) is available on konvalo.org. You can run it on Linux (2.6.x), FreeBSD (5.x) and NetBSD (2.x) on Intel x86. ffmpeg2theora may be considered the recommended Theora encoder. The author of the program is Jan Gerber @ v2v.cc Those of you who already use Konvalo.org do not need to do anything, the program is in your PATH. Otherwise see
2008 Oct 28
1
Dealing with progress codes
Hi, I've ran into an issue with a PRI provider in a major metropolitan area that I haven't needed to deal with before and I was hoping someone might have some insight on how to handle this within the Asterisk dialplan. At this location users can't always tell if a number is long distance or not (there are a lot of area codes and prefixes in the vicinity). Additionally, users are
2004 May 18
2
Dual Redundant Network routing [Question]
Greetings, I have a routing problem I am hoping can be solved. I have three networks. A Private network, and a dual network the private network connects too. The internal network talks through a gateway/router(linux redhat 7.2) that has a default route set that allows the internal network to talk to a computer on the external networks. The external network is a Redundant network scheme in
1999 Jan 25
3
ICMP Error
I just installed pre 9 of kernel 2.2.0. I am now getting echoed to the screen of whatever virtual terminal I am in the following message: 172.16.81.99 sent an invalid ICMP error to a broadcast This is repeated for a number of IP addresses. Obviously, the problem is two fold. Firstly I need to find out what the problem is with the servers. However, I find it somewhat annoying to having this
2002 Nov 27
5
transparent PAT
Hello, everyone! I would like to solve the following problem. Btw, I''m terribly sorry about the pseudo-asciiart, but that''s all I can paint as a tropology. I''m hoping it''ll be enough. ----Internet---- | | | eth0 machine A routing+ipchains eth1 | ------------------ machine B So, given I''m running kernel 2.4.19 and using ipchains