Displaying 20 results from an estimated 20000 matches similar to: "Help needed in Routes"
2011 Mar 21
2
Action Mailer - Proxy Settings.
Hi,
I am developing a rails app on a system which connects to internet
through proxy.
I am facing difficulties while Action Mailer tries to send mails.
It says, Time Out Error.
But when I try to run the code in the system which is directly connected
to internet without proxy, The mails are sent correctly.
Can somebody help me out it in this?
Cheers,
Charanya
--
Posted via
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
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):
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,
2008 Apr 07
0
link_to only links to current controller?
This is really confusing to me- I have some code in a page on the site
I''m working on that works absolutely fine on one version of the code and
totally doesn''t work on a newer version, in spite of the fact I can see
no difference whatsoever either in the rhtml pages, the controller or
any of the routing code. Right now I literally have no idea what the
cause of this could be.
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"
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
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 Aug 10
0
routing wierdness
perhaps i am missing something but i can''t seem to see it so perhaps
someone else can see what is going on
i have the following routes setup
map.connect "", :controller => "main", :action => "index", :site => "home"
map.connect "admin", :controller => "admin/main", :action => "index"
map.connect
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
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 ==
2008 Nov 13
1
Fragment caching strangely honors the options I pass to it
Hi,
In my view I have the following cache:
<%- cache(:controller => ''products'', :action => ''index'', :action_suffix
=> ''footer'') do -%>
...
<%- end -%>
And that''s the file generated:
tmp/cache/views/www.mysite.com/products.action_suffix=footer.cache
Why isn''t fragment caching picking up the :index
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 Mar 26
2
Rails 3 + SSL
After reading tons of posts about buying certs, etc, I''m still
confused. Please point me in the right direction. Here''s the
question:
I have a rails3 site (www.mysite.com). I want to have some pages use
ssl, and some not. It appears the require_ssl approach is pre-Rails3
and there are other alternatives. Most of the posts I read talk about
using a diff domain for ssl
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
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
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
2014 Jan 22
0
passenger apache2 setup with ipaddress
Hi,
Good evening!
Is that possible to point like below
<VirtualHost *:80>
ServerName *xxx.xxx.xx.x/mysite * #server ip address
DocumentRoot /path/to/projects/public
RailsEnv development
<Directory /path/to/projects/public>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
and Can I access *xxx.xxx.xx.x/mysite *in my browser? I tries
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