search for: urlrewrit

Displaying 12 results from an estimated 12 matches for "urlrewrit".

Did you mean: urlrewrite
2006 Jan 10
4
Problem creating MockController
...m trying this: require ''d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/action_controller'' # Re-raise errors caught by the controller. #class DiscussionsController; def rescue_action(e) raise e end; end class MockController < ActionController::Base def initialize @url = UrlRewriter.new(ActionController::TestRequest.new, nil) super end end because if I just do require ''action_controller'' I get a no such file error. Problem with this mock is that I get a recursive error: SystemStackError: stack level too deep d:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11...
2006 Feb 24
0
UrlRewriter problem in components
...9;'list'', :url => { :params => { :key => ''value'' } } and receive a completely wrong result. I did some debugging and found out, that the error happens in http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/url_rewriter.rb?rev=3534#L44 UrlRewriter calls "Routing::Routes.generate(options.dup, @request)" and passes @request, which is used for url-generation in next step. I''ve made some debug output to point up the problem: puts params puts @request.path_parameters puts url_for :params => { :key => '...
2008 Mar 06
3
facebook_url_rewriter not used in Publisher?
As per my last email, I''m generating links to our app outside of Facebook. Sorry for the onslaught of emails on this. I do link generation in Publisher based code as well. What I''m finding is that the Facebooker UrlRewriter doesn''t get used in Publisher. This makes sense if we assume that Publisher can be used outside of an HTTP request, and things like the UrlRewriter use the HTTP request. Yet, link_to, and url_for and such are there (probably sucked in via pulling in various other helpers and such). So...
2006 Jan 09
1
testing UrlHelper in ActionMailer
...on''t really need the defaults in the controller @url anyhow. Any ideas how I can test this thing properly? Create a mock controller perhaps? Some method to set the controllers @url variable ...? I was trying this: class MockController < ActionController::Base @url = ActionController::UrlRewriter.new(ActionController::TestRequest.new, nil) end but I keep getting "MissingSourceFile: No such file to load -- url_rewriter" errors - I can''t work out how to pull in the UrlRewriter class ... Many thanks in advance. CHEERS> SAM
2008 Mar 28
1
undefined method ''alias_method_chain''
Running Rails 2.0.2, I get this error: ./script/../config/../vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb:29: undefined method `alias_method_chain'' for ActionController::UrlRewriter:Class (NoMethodError) from /usr/local/rubygems/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/rubygems/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from ./script/../config/../vendor/rails/activerecord/lib/.....
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
...''s definitely taking it into account). I''m wondering if someone can comment on this more? I have a fix, but I''m not sure if it''s actually a fix, or just solving the symptom or improper use on my part, etc. What I did to fix it was change Facebooker''s UrlRewriter#link_to_canvas? (in facebook_url_rewriting.rb) to look like this: def link_to_canvas?(params, options) option_override = options[:canvas] if option_override == false # important to check for false. nil should use default behavior options[:only_path] = false RAILS...
2006 Jun 16
0
rake spec controller test output hideus.
...=>#<ActionController::TestResponse:0x24d6880 ...>, "action_name"=>"signup", "template"=>#<#<Class:0x251ee78>:0x24d4f80 ...>, "request_origin"=>"0.0.0.0 at 2006-06-16 16:23:36", "url"=>#<ActionController::UrlRewriter:0x24d4ea4 @parameters={"user"=>{"password_confirmation"=>"wrong", "login"=>"newbob", "password"=>"newpassword", "email"=>"newbob@mcbob.com"}, "action"=>"signup", "c...
2006 Dec 14
0
Sale on ogg-vorbis 256 MB player - $10 + shipping
...0. I am posting here first with the hope other vorbis enthusiasts will get in on the deal before it hits fatwallet and slickdeals. I plan to post it to fatwallet.com Monday morning if they are still available. For me, one player shipped was $18, two players shipped was $24. http://64.49.229.224/URLrewrite.asp?404;http://www.samsungrb.com:80/YP_F1V_p/yp-f1v.htm&Redirected=Y or http://tinyurl.com/yxdama or http://64.49.229.224/YP_F1V_p/yp-f1v.htm -Ben
2006 Dec 15
0
RE: Vorbis Digest, Vol 31, Issue 11
...0. I am posting here first with the hope other vorbis enthusiasts will get in on the deal before it hits fatwallet and slickdeals. I plan to post it to fatwallet.com Monday morning if they are still available. For me, one player shipped was $18, two players shipped was $24. http://64.49.229.224/URLrewrite.asp?404;http://www.samsungrb.com:80/YP_F1V_p /yp-f1v.htm&Redirected=Y or http://tinyurl.com/yxdama or http://64.49.229.224/YP_F1V_p/yp-f1v.htm -Ben ------------------------------ _______________________________________________ Vorbis mailing list Vorbis@xiph.org http://lists.xiph.org/mail...
2007 Dec 20
0
Relative URL fix
...ns controller doesn''t call any of the facebooker before_filters. Part of the reason for this is that the url_writing methods add the key :skip_relative_url_root to the options hash for the url_rewrite method. It is assigned a boolean value and passed along to the ActionController::UrlRewriter#rewrite_url method. Unfortunately, rewrite_url cares about the existence of the key not only its'' value. def rewrite_url(path, options) url = old_rewrite_url(path, options) if ActionController::check_mode_and_base unless options[:skip_relative_url_root] url = url...
2006 Feb 23
12
RoR site structure on Apache
I try a ''hello world'' demo here,you can see all my codes and structure http://www.smtservers.com/demo/ I want to access the ruby app like this http://www.smtservers.com/demo/say/hello but I get a 404 error. Please let me know why. I am not sure the site structure is ok or not.Please give me a help Thanks Mark -- Posted via http://www.ruby-forum.com/.
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...current controller, action, and id are the same as the link''s, in which case only the name is returned (or the given block is yielded, if one exists). This is useful for creating link bars where you don''t want to link to the page currently being viewed. * Fixed that UrlRewriter (the driver for url_for, link_to, etc) would blow up when the anchor was an integer [alexey] * Added that layouts defined with no directory defaults to layouts. So layout "weblog/standard" will use weblog/standard (as always), but layout "standard" will use layouts/s...