Displaying 20 results from an estimated 11000 matches similar to: "Rails redirect/jump script?"
2006 Jun 22
2
[PLUGIN] url_for_with_prefix - allowing you to modify/remove prefixes easily
Here''s the readme. I think it''s okay to post this kind of thing to
the mailing list. Anyway, hopefully someone else finds this useful.
UrlForWithPrefix
================
By Pat Maddox
Very simple plugin, adds the :prefix option to url_for.
Say in your environment.rb file you''ve got
ActionController::AbstractRequest.relative_url_root = "/super"
Any time
2010 Dec 01
10
How to Redirect from http://mysite.com to https://www.mysite.com on Herok
Hello I''m looking to learn how to redirect all non-www (mysite.com) to
https://www.mysite.com
I tried the following:
class ApplicationController < ActionController::Base
before_filter :check_uri
def check_uri
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri if !/^www/.match(request.host) if Rails.env ==
2005 Nov 22
4
multiple rails apps on one lighttpd
Good evening (or afternoon or whatever it is where you are),
Before I start setting it all up, I have a question about lighttpd and
multiple rails apps. From what I have read, it is at the minute only
possible to do multiple rails apps using subdomains:
typo.mysite.com
hieraki.mysite.com
rforum.mysite.com
etc, etc
and not currently possible to do this:
mysite.com/typo
mysite.com/rforums
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
2011 Aug 01
3
CentOS 6 driver support
Hello all,
This is the laptop I own:
HP Pavilion dv6t Quad Edition
Spec: Intel Core i7-2630QM 2.0GHz, 6GB RAM, 750GB HDD, VGA ATI Radeon HD
6490M
You can also check the spec here:
http://www.amazon.com/HP-Pavilion-dv6t-dv6tqe-Laptop/dp/B00506B7DS/ref=sr_1_3?s=electronics&ie=UTF8&qid=1312164145&sr=1-3
I am going to install CentOS 6 to it but I want to make sure that which
drivers
2006 Sep 14
2
passing invisible parameters
I am unable to find any information about invisible parameters. I
currently have some code like this:
<%= link_to ''page'', :controller => ''form'', :action => ''new'', :type =>
''first_type'' %>
<%= link_to ''page'', :controller => ''form'', :action =>
2006 Jan 03
18
Trying to do a simple thing ...
Hi !
I was talking to a seasider and he asked me if it was easy to do the following
thing using rails :
1) ask a number to the user
2) ask a second number
3) give the addition of the two number and a link to be able to replay
All these things have to be done in one controller and one action, there is no
need for verification and other stuff.
I tried but I''ve got some problems
2006 Jan 11
15
How to use custom url formats?
I''m new to Rails and am trying to use a field called "code" instead of
"id" in my URLs. For example, assuming I''ve got a database of
motorcycles makes where the codes are "Honda", "Yamaha", "Suzuki", and
"Kawasaki", etc. To show the info about Honda I want to use this url:
http://www.mysite.com/makes/honda/
2006 Sep 06
1
31K failed stat64's when viewing a simple (no db) rhtml page?
I''m trying to help the sys admins of my server figure out what is up
with our Rails installation (debian sarge - completely up to date).
Hitting a simple page yields 31,000 failed stat64''s and takes anywhere
from 8 - 44 seconds. They #! for ruby is correct everywhere, but it''s
like it can''t find Rails. These are box stock standard installs.
Here''s
2007 Aug 13
1
Extract part of vector
Dear R-users,
How do I extract numbers between asp?P= and &VID from my txt vector? I have
tried grep function with no luck.
txt <- c("
http://www.mysite.com/system/empty.asp?P=2&VID=default&SID=421384237289476&S=1&C=18631",
"
http://www.mysite.com/system/empty.asp?P=123&VID=default&SID=421384237289476&S=1&C=18643",
"
2006 May 08
4
link_to - Going Back without knowing the action name.
Hi,
I have a bunch of link_to''s in my code that are simple Back buttons that
should basically just go to the previous request. Is there a way of doing
this without specifying the action to execute? The problem is, sometimes I
may render the same view through separate actions so I wouldn''t know which
action to go back to.
Thanks.
-------------- next part --------------
An HTML
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
2008 Jan 23
7
Apache, Mongrel, Authentication
A question about mongrel, apache and authentication.
I''ve got a Rails site with I think a very typical setup: a mongrel
cluster behind an Apache proxy. So Apache''s handling the static stuff
and it hands off dynamic content to mongrel. I want to put the site
temporarily behind Apache''s basic authentication. What I get when I
do this is that is a password prompt which
2006 Dec 27
5
redirect back to where I was before action?
For some reason I cannot find the documentation for this. How can I
store the current URI/URL so that I can return with a redirect_to?
session[last_action] = ???
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 May 29
4
Prompting user to enter value to feed Find
Hi,
While viewing part of a long list of records, the user may want to do a
Find of a specific record (for example, find_by_name). The found record
is then displayed using the list view. I''ve searched the wiki and
couldn''t find a sample or information that will help directly in
implementing this function. Any pointers?
Thanks!
gk
--
Posted via http://www.ruby-forum.com/.
2013 Feb 22
1
Variables within Manifests question
Hello all
Can someone please help me or answer if this is possible
I''m using the puppet forge IIS module, and want to use variables within the
syntax dependent up ip address
for example:
colo_a = 1.1.1.0
colo_b = 2.2.2.0
if $network_local_area_connection = 1.1.1.0
add colo_a
elseif $network_local_area_connection = 2.2.2.0
add colo_b
iis_site {''mysite.co.uk'':
2014 May 21
2
Icecast2, ezstream and reverse proxy
Hello
Ezstream is working well locally with Icecast2 on port 8000 on a Debian Wheezy platform. However, I use a reverse proxy (Pound) to pass all requests from the Internet for x.mysite.com to backend localhost:8000 i.e. my Icecast2 server. This works fine, i.e. x.mysite.com brings up the Icecast2 Status page. My problem is with the ezstream xml configuration <url></url> setting which
2004 Nov 03
1
File case sensitivity
Hi;
I've run into a somewhat interesting issue in regards to IIS serving
content from a samba share. Occasionly, IIS will return 404 errors for
content that does infact exist.
>From the samba machine, I captured the following:
This is an example of the site http://www.mysite.co.nz/foo not working:
[2004/11/04 09:30:14, 3] smbd/trans2.c:call_trans2qfilepathinfo(2353)
2010 Jun 12
2
Redirections, Duplicate Content & Permalinks
Hi,
Recently I''ve looked at trying to get a permalink system up to
increase my site''s ranking in google (and to have nice looking URLs);
however I''ve been very worried about google and duplicate content.
I currently already have a "flaw" in my site, in which if you go to
mysite.com/tutorials/ID it will bring you to the same place as
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,