search for: request_url

Displaying 5 results from an estimated 5 matches for "request_url".

Did you mean: request_uri
2012 Nov 02
1
[Rails 3.2.8] issue in regex scan
running a scan in irb is fine : 1.9.3p194 :001 > request_url = "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages" => "http://lvh.me::3000/en/backoffice/cms-admin/site/6/pages" request_url.scan(/^([\S]+)(backoffice\/cms-admin\/site\/)(\d+)(\/pages)$/)[0][2] => "6" however running it in my controller doesn'...
2006 Jan 24
4
Parse request URL.
Hello all. Due to the mistakes of the company before I joined ;) I am stuck with a multiple database setup. I am planning on parsing the REQUEST_URL to decide which controller is being accessed and basing the establish_connection on that. Before I go messing around with regexps I was wondering if rails has a built in function for parsing URLS. I have googled around a bit and seen net/http but I cannot find an API for it. Thanks Jeff --...
2006 Jul 19
1
flickr.rb error
...e: NoMethodError in FlickrController#search private method `gsub'' called for 24:FixnumRAILS_ROOT: C:/rails/flickr/config/.. Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:75:in `request_url'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:66:in `request'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb:142:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/flickr-...
2006 Apr 04
1
integration tests - 1.1
...:password => "blah"}) follow_redirect! assert_response :success user = session[:user] assert !user.nil? # puts response["REQUEST_URI"] # assert_equal(request_uri, response ["REQUEST_URI"]) end The last two lines don?t work? I can see REQUEST_URL in the @attributes of the response and it contains the correct uri ("/datafeed/event/report?blah=blah"), but I can?t figure out how to access it. I also haven?t been able to locate the source code for the response (CgiResponse). Can someone point me in the right direction? Thanks...
2010 Aug 14
10
Redirecting after logging in
Hey everybody, I''m trying to make an example of a small networking site, and when I log in a user, it should redirect and show his profile, but I get the following error: NoMethodError in User#index Showing app/views/user/index.html.erb where line #5 raised: undefined method `screen_name'' for nil:NilClass Extracted source (around line #5): 2: Your basic information 3: