Displaying 20 results from an estimated 67 matches for "abstractrequest".
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 compatibility with plugins using it ?
Thanks,
Cezar
--~--~---------~--~----~------------~-------~--~----~
You receive...
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 incoming URI really begins
with the relative URL root before removin...
2006 Aug 15
0
Using config.action_controller.asset_host with ActionController::AbstractRequest.relative_url_root
...ternal
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
ActionController::AbstractRequest.relative_url_root = "/app"
When I then include the this code in my layouts:
<%= stylesheet_link_tag ''main'' %>
<%= javascript_include_tag :defaults %>
it produces the following output:
<link href="http://assets.example.com/app/stylesheets/main.css&quo...
2007 Oct 22
0
[PATCH] - AbstractRequest#parameters destructively overwrites request_ and query_parameters
Hi guys,
I''m looking for some +1''s for a bug fix patch I submitted:http://
dev.rubyonrails.org/ticket/9949
AbstractRequest#parameters is overwriting request_parameters when
called, so I drew up a patch and test case to fix it. Any people
willing to try it out would be much appreciated.
Thank,
Scott Fleckenstein
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribe...
2005 Dec 30
6
call a method once per page request
Hi,
I''m wondering if there is a simple solution to call a method once per
page request.
I tried to place my call in a before_filter in ApplicationController but
it''d called a second time if I use render_component from a view.
Seems to me that a hook should be added in Dispatcher#prepare_application.
Context: working on i18n, I''m trying to check lang either from uri,
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
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...
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...
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 = "/test"
Here''s a lighttpd config file that runs on port 80. Be sure to activate mod_alias!!
# Default configuration file for the lighttpd web server...
2006 Jun 22
2
[PLUGIN] url_for_with_prefix - allowing you to modify/remove prefixes easily
...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 you use link_to, it will prepend /super to the link. This
can be a pain if you want to link to other applications:
link_to "My Other App", :controller => "other_app_controller" # =>
"http://mysite/super/other_app_con...
2006 Feb 11
1
How to POST raw data?
Hi,
I know that ActionController::AbstractRequest provides a raw_post method
that reads the data that has been posted to the HTTP server as raw data.
I am trying to create a rails application that POSTs raw XML data to a
web page that reads raw data.
I would like to know how to POST raw data to an HTTP server using Ruby
on Rails.
Can you help...
2007 Nov 06
1
[PATCH] ActionController::CgiRequest#host_with_port() should handle standard port
Hi everyone,
I''m looking for some +1''s for a bug fix patch I submitted:
http://dev.rubyonrails.org/ticket/10082
The problem is that CgiRequest#host_with_port() overrides
AbstractRequest#host_with_port() and does''nt use port_string()
with standard_port() care.
So I created patch to rename CgiRequest#host_with_port() to
host_with_port_without_standard_port_handling().
And then CgiRequest#host_with_port() is inherited AbstractRequest''s
one, which cares standard_po...
2006 Aug 31
2
$_SERVER for rails?
Is there something similar for rails that is like $_SERVER in PHP?
Something that gives you the hostname, etc. I tried using just host in
my controller, because the documentation says there is a host method,
and got an undefined method error.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
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
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
2009 Aug 25
17
WHy is rails so annoying to deploy?
...how many more
errors can I take before I give up.
RAILS IS NOT NICE
After battling with countless different errors from trying Ubuntu,
Fedora, Windows and now Debian the list goes on and on and ON...
now the latest error
`load_missing_constant'': uninitialized constant
ActionController::AbstractRequest (NameError)
is now coming up due to some missing code in the latest rails 2.3.3, so
now I have to hack the application to try to get it to work, but surely
isnt there a simple way to move between rails versions without having to
refactor an entire application (xlsuite) to even get it to work?
I;v...
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:
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
2006 Jul 26
5
Mongrel + mod_proxy URL issues
...the merely are relative hrefs that look like
href="/mycontroller/mymethod/etc"
and as a result do not go to the proper pages.
How do I fix this? Why is it different when I specify a subdir versus
just specifying ''/'' in my proxy? I have tried using:
ActionController::AbstractRequest.relative_url_root = "/myapp" and it
just does not help. I am extremely confused and tired. I can''t help but
feel I''m getting close. It''s taken the last 2 days to get mod_proxy
working. Any help is appreciated.
--
Posted via http://www.ruby-forum.com/.