Displaying 20 results from an estimated 2000 matches similar to: "uninitialized constant ActionController::AbstractRequest (NameError) with rails 2.3"
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 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
2010 Dec 06
0
Rspec: `should': uninitialized constant RSpec::Expectations (NameError)
Hi all, tried posting this to rspec group but w/o success so hope someone on
this list might be able to help me out as am kind of stuck:
Can anyone tell me why I am getting this error trying to ''rake spec'':
''kernel.rb:27:in `should'': uninitialized constant RSpec::Expectations
(NameError)''.
Can''t seem to find a useful reference online to
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
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().
2009 Apr 27
2
uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
I''m just starting on BDD. I installed the gems for webrats and
cucumber.
I also ran the following in the Ruby shell:
>rake gems:install RAILS_EN=test
>script/generate cucumber
These commands seemed to create the expected features and lib folders
in my project.
I''m using the eclipse framework with Aptana and RadRails as my IDE.
However, when I run:
>cucumber features
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
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
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 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 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 me with this?
Thanks,
Yash
--
Posted via
2009 Jan 09
1
Is there a problem with webrat?
webrat (0.3.4)
I have this in the view:
<div id="list_entity_1">
<tr>
<td>Just An Entity</td>
<td>000001</td>
<td id="show_entity_1"><a href="/entities/1">Show Entity</a></td>
<td id="edit_entity_1"><a href="/entities/1/edit">Edit
Entity</a></td>
2005 Apr 21
0
Uninitialized constant in 0.12.1?
Is anyone else getting this error message?
[root@dev /home/users/filmfury]# ./script/console
Loading development environment.
/usr/local/lib/ruby/gems/1.8/gems/actionwebservice-0.7.1/lib/
action_web_service/protocol/abstract.rb:71:NameError: uninitialized
constant ActionWebService::Protocol::ActionController
irb(main):001:0>
The message shows up when doing other things as well, such as in
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
Has anybody had any luck getting Cucumber, Webrat and Selenium to play
nicely together for SSL sites?
My test environment:
- nginx front-end accepting SSL requests, proxying them to mongrel
back-end
- mongrel back-end accepting normal HTTP requests
- application routes configured with ":protocol => ''https''" so that
URLs generated with "_url"
2009 Jan 13
2
Cucumber newbie gets Webrat::Se ssion (LoadError)
Just trying to get cucumber/webrat going and so after following the
installation process here
http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails i wrote a
quick feature and when I rake features, I get the following in the
console:
c:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/acti
ve_support/dependencies.rb:262:in `load_missing_constant'': Expected
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3.
My spec_helper.rb
ENV["RAILS_ENV"] ||= ''test''
require
File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment''))
require ''spec/autorun''
require ''spec/rails''
require
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on
Windows.
It seems to work ok, but when I try to add selenium to webrat. I get the
error shown below.
It seems like it thinks it is in a linux environment or something as the
error happens when it tries to start selenium server and there is a "&" at
the end of the argument chain. I took a look at capybara
2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
Have created sample sinatra cucumber app as suggested on wiki. Tried both
env.rb configurations from there and aslaks git repo. With this combination
of gems I get the following error doing basic cuc tests
When I visit ''/foo'' #
features/step_definitions/general.rb:1
PATH_INFO must start with / (Rack::Lint::LintError)
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story
testing.
MHS_Testing and Rspec-ui provide some great help for testing through
frameworks like Selenium/Watir.
But there is something missing, Webrat has changed the landscape
somewhat with Acceptance Tests/Story Driven development.
Now I have a choice:
1. Tests and rails process run as one test process (Webrat)
2. Use
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