similar to: Why is relative_root_url not used to automatically scope routes?

Displaying 20 results from an estimated 11000 matches similar to: "Why is relative_root_url not used to automatically scope routes?"

2006 Jul 26
5
Mongrel + mod_proxy URL issues
We have a Centos server with a number of virtual hosts, and my rails app runs under one of those virtual hosts using mongrel_rails. The app lives in /home/mydomain/railsapp where /home/mydomain/railsapp/public is the rails root. It runs under mongrel on port 8008, so to get to it users invoke the url http://www.mydomain.com:8008/ - all is fine to this point. Now I have some users whose
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
I''m looking for some help with an issue I''m having using an external asset host. I''ve got the lines below in my environments/development.rb file. # Enable serving of images, stylesheets, and javascripts from an asset server config.action_controller.asset_host = "http://assets.example.com" #make rails think it lives in /app
2012 Feb 26
0
Served asset /application.css - 304 Not Modified
Hi I am thinking to hide warning that is ”Served asset /application.css - 304 Not Modified”. How can I fix something if I change the settings? I''ve run that is less than server: rails new myapp cd myapp rake db:migrate rails s client: http://localhost:3000/books warning: Started GET "/assets/books.css?body=1" for 127.0.0.1 at 2012-02-26 14:48:35 +0900 Served asset /books.css
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
2008 Jan 31
2
Facebooker and file_column
Facebooker URL Rewriter stuff overloads ActionController::AbstractRequest.relative_url_root, causing a conflict with the plugin file_column and possibly other utilities. file_column constructs image URLs using the server host and relative_url_root This is not related to the sandbox patch I added to the rewriter. Facebooker overloaded relative_url_root before I touched it. I''ve
2006 Feb 16
1
setting the right routes
I''m trying to create an admin section in my application which can be accessed through www.myapp.com/admin. I''m going to need to administer two models through the admin section. I have a generated the controllers for Admin::Image and Admin::Project. That created a subdirectory under the controllers directory called admin and I can access each controller through
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi. In my environment.rb, I have: ActionController::AbstractRequest.relative_url_root = "/foobar" In my layout, I have: <%= javascript_include_tag :defaults %> Question 1: I am getting an error: ActionController::RoutingError (no route found to match "/javascripts/prototype.js" with {:method=>:get}): When I remove the relative_url_root, everything works great.
2006 Aug 10
2
Mongrel servers running in a subdirectory behind a proxy
I was able to find some information about this in the list archives, but it ended with a possible patch being submitted for Mongrel. I tried to follow a few of the instructions, but I''m still kind of stuck, since I''m not sure if what I''m seeing is the proper results. I have an application running on a cluster of mongrel servers, which is behind pen, which in turn is
2012 Feb 01
0
Rails 3.1 form & routes.rb [newbie]
Hi all, maybe is a newbie question anyway 1. I create de rails app with # rails new {my app} 2. after I add some gem to my Gemfile source ''http://rubygems.org'' gem ''rails'', ''3.1.1'' gem ''sqlite3'' gem ''simple_form'' gem ''execjs'' gem ''therubyracer'' # Gems used only
2012 Jan 01
3
'require_tree .' does not seem to be including the available *.js files as expected. Why?
Hi, all, Happy new year :) Referring to http://guides.rubyonrails.org/asset_pipeline.html, it seems that ''require_tree .'' in myapp/app/assets/javascripts/ application.js will include all *.js files in the myapp/app/assets/ javascripts/. I have a few other *.js files in this directory : parts.js, makes.js and categories.js. Here''s an extract from the html file I
2006 Mar 02
2
SwitchTower: why symlink releases/under -> current?
Hi, I have a trouble with deploying my ordinary rails application(myapp). When I execute ''rake deploy'', [...] command finished * executing task symlink * executing "ls -x1 /var/www/myapp/releases" servers: ["app1.olalog.com"] [app1.olalog.com] executing command command finished * executing "ln -nfs /var/www/myapp/releases/under
2010 Jul 08
0
Rails3 -- Replacement for ActionController::Base.relative_url_root?
I have a post on stackoverflow which outlines the problem I am having: http://stackoverflow.com/questions/3181746/what-is-the-replacement-for-actioncontrollerbase-relative-url-root In short, I ported a rails 2.x to rails3 and started getting a deprecation warning for using ActionController::Base.relative_url_root. I switched to using config.action_controller.relative_url_root and while any
2006 May 23
3
image_tag problem
Hiall, I want to make an image_tag from within a controller in order to be able to present a link (with a status image) in a view. Here is my controller method (in file webca_controller.rb, hence WebcaController) def untouched_status_image_tag image_tag("open", { :alt => "Offen", :title => "Offen", :size => "12x12", :class =>
2006 Jan 04
1
[BUG?] image_tag
i''ve got the latest ruby and rails on this box and am seeing that image_tag will turn something like /foo/bar.jpg into /foo/foo/bar.jpg in the following situation: /ror/foo/public /var/www/html/foo -> /var/ror/foo/public/ image_tag("/foo/bar.jpg") this is exactly how compute_public_path is written to work: def compute_public_path(source, dir, ext)
2006 Apr 28
1
Apache proxy to lighttpd leads to Rails routing error
Hello, I have an issue I am having trouble figuring out. I have a Rails app running through lighttpd which is accessed through an Apache proxy. My apache config: <location /rails/> ProxyPass http://localhost:81/ ProxyPassReverse http://localhost:81/ </location> RewriteEngine On RewriteRule ^/rails/(.*) http://localhost:81/$1 [P] So when apache sees /rails/ it
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this: http://myapp.mydomain.com/myapp and and https://myapp.mydomain.com/myapp are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster on the same machine. But I need to make these available here: https://www.mydomain.com/myapp and https://myapp.mydomain.com/myapp are on a second server using ProxyPass and ProxyPassReverse to
2008 Mar 21
1
Which command line is used to send emails to notify incoming voicemail ?
Hi, In exim4, I can see lines such as : mainlog.9:2008-03-12 08:53:28 1JZLmC-0000E7-0A <= root at foo.com U=root P=local S=43802 id=Asterisk-0-123413860-4174-2662 at ipbx-bs-60200 In my voicemail.conf, I see : ; If you need to have an external program, i.e. /usr/bin/myapp called when a ;externnotify=/usr/bin/myapp ; If you need to have an external program, i.e. /usr/bin/myapp called when a
2006 Jan 07
2
Functional tests with routes
Hi all, I''m trying to do a route test using assert_generates and running into a bit of trouble. The controller that I am testing is in a module - class Admin::AdminPortalController def index end end I want the user to jump to the AdminPortal/index action when they use http://myApp/admin, so I''ve put the following in routes.rb map.admin_portal
2008 Jan 09
1
relative_url_root and problems with CSS url()
I''m using relative_url_root to allow my app to be run from a sub- domain. Things work fine except with images that are referenced in my CSS code. For example, background-image: url(/images/bg_image.jpg); does not take into account the value in relative_url_root. Consequently, my background image (and other images similarly referenced in my stylesheet) are not loadable. Anyone know a
2009 May 06
0
Setting config.action_controller.relative_url_root isn't working
Hi everyone, I''m trying to set the "config.action_controller.relative_url_root" config value but it isn''t working: config.action_controller.relative_url_root = "/de" When i try to view the http://localhost:3000/de page it gives me a "Routing Error", but if I try http://localhost:3000/ it works perfectly. Any idea about what this might be? -