similar to: relative_url_root and javascript_include_tag

Displaying 20 results from an estimated 9000 matches similar to: "relative_url_root and javascript_include_tag"

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 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
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an Apache server. It seems to work fine but my urls are incorrect: all urls reference / which is not where my application runs at the Apache server. How do I set the base url of a Rails application? My Apache has the following proxy rules: ProxyPass /hieraki http://localhost:3001 ProxyPassReverse /hieraki
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
Hi all, I''m currently trying to get Mongrel running my app whilst fronted by apache 2.2 in a sub-directory via https. A bit convoluted I''ll grant you but necessitated by existing systems. The pertinent parts of my httpd.conf: <VirtualHost 123.123.123.123:12345> #historic choice of random port number DocumentRoot /var/www/admin ServerName admin.example.com:12345
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
2006 Feb 23
5
Running apps in subdirectories using lighty/scgi
Hi, So thanks to Zed I was able to get lighty/scgi and a Rails app running. I know this might not be the best place to post this, but I guessed there may be several others with similar experiences here. So, the following step is to have several apps each in its on subdirectory. I tried the following to no avail: $HTTP["url"] =~ "^/tango/" { server.document-root =
2006 Mar 07
13
hosting multiple rails apps in one webroot?
It''s actually REALLY easy with lighttpd on linux. Two apps... Myserver.com/code/ => /apps/code/ Myserver.com/test/ +> /apps/test/ Each application needs this in the environment.rb /apps/code/config/environment.rb ActionController::AbstractRequest.relative_url_root = "/code" /apps/test/config/environment.rb ActionController::AbstractRequest.relative_url_root
2005 Dec 04
3
Relative URL
I''m trying to use a non default webserver with Rails and succesfully does this by calling the disptacher directly, by setting the environment variables: REQUEST_URI and SCRIPT_NAME My problem is that the relative path is incorrect when I identify myself as anything else than apache. In request.rb the @@relative_url_root is only set when the webserver is apache. Is this default wanted
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 Mar 07
0
setting relative_url_root for static files in webrick
Hi, I am using webrick and want my application not be available on http://localhost:3000/ but http://localhost:3000/rails. So I found out I can set ActionController::AbstractRequest.relative_url_root = "/rails" in environment.rb. This works for controllers without further modifications. But for the static files, I have to put a "rails" directory into the public directory, and
2009 Jun 25
8
Mongrel service keeps re-starting ruby
On Thu, Jun 25, 2009 at 2:07 AM, Michael Pliskin<mike at comapping.com> wrote: > Hi all, > > > > Some disclaimer first: I am a complete newbie in mongrel and this list, so > please forgive me if I say something weird. I have a problem, I?ve googled > for a solution for quite a while and failed so far, so decided to ask here. > > > > I am trying to set up my
2008 Nov 26
3
fckeditor_textarea
hi, i am currently using rails version 2.2.2. and using fckeditor_textarea. here is the code: <%= fckeditor_textarea(:emailcontent,:body, {:toolbarSet => ''Basic'', :width => ''100%'', :height => ''100%''}) %> where emailcontent is the model(object) name, and body is method. but it''s not working,however
2006 Jun 21
3
multiple apps one virtual host one domain
I''m trying to achieve the following: Having a development server that runs multiple rails apps running wihout creating a different virtual host for each apps. my documentRoot is therefore /var/rails for my whole config http://myserver/app1/controller/action -> (/var/rails/app1/...) http://myserver/app2/controller/action -> (/var/rails/app2/...) I''m under apache 1.3 mod
2007 Feb 08
2
cannot set ENV['RAILS_RELATIVE_URL_ROOT']
i am on lighttpd now, and i cannot set cannot set enviroment variable: i added this line to enviroment.rb, but it doesn not work!! ENV[''RAILS_RELATIVE_URL_ROOT''] = ''something'' links on my page are ok, but all links to images, stylesheets etc are broken, (because relative_url_root returns ''''), what else can I do? thanks. f. -- Posted via
2009 Apr 06
2
URL issue localhost/mongrel vs remote-server/apache
Hi all I have a small issue I ma trying to solve (at least to understand..) I am testing an app on my remote_server (w Apache/Passenger) in a sub_URI, without any problem (I tested also the same app, locally w Apache too) in my environment.rb , I have initialized config.action_controller.relative_url_root = "/my_subURI" config.action_controller.asset_host =
2006 Jul 25
0
Bug in AbstractRequest.path() ?
ActionController::Routes.recognize() to obtain a URI for matching. If ActionController::AbstractReqeust:;relative_url_root is non-zero length, then the AbstractRequest::path chops that many characters off the request URI before returning the new URI. The problem is that this chopping happens whether or not the URI begins with the relative URL. I would expect the method to test whether the
2006 Mar 06
4
Apache 2.x: Use fcgid or Mongrel?
Hi, There''s lots of stuff going on currently with choices of production deployment environments. But I''m not clear on a few things as I need to decide on a production setup where Apache is a given. A recent thread (http://www.ruby-forum.com/topic/56590) seemed to favor Apache 2 with mod_fcgid. And this is supported in articles such as:
2009 Mar 18
1
uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3
Hi guys, I''ve just installed Rails 2.3 and I am using the clearance plugin with cucumber features. When I run rake features I get this "uninitialized constant ActionController::AbstractRequest (NameError)" error from webrat trying to call AbstractRequest which now is called Request (I think). My question is : Is there any way to alias the old name to have backwards
2005 Dec 14
3
Multiple rails apps to appear as one app
Hello everyone, I have a problem concerning two rails apps, which I can''t seem to solve. I already tried the Ruby On Rails IRC channel. I also started a thread at the Site5 forums: http://forums.site5.com/showthread.php?t=6682 As is described in http://wiki.rubyonrails.com/rails/pages/HowtoDeployMoreThanOneRailsAppOnOneMachine , I would like two separate Rails applications to
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