search for: url_rewrit

Displaying 20 results from an estimated 21 matches for "url_rewrit".

Did you mean: url_rewrite
2007 Dec 04
5
new facebooker
Hi guys, I am new to this list and thought i''d say hello. I am using facebooker on a new project and so far I am really pleased with it. I saw that some users are having woes with the url_rewriter breaking urls for paths outside of the facebook canvas (i.e. your site supports both facebook and non-facebook users). I don''t have a prefect answer for this but I wrote a plugin called facebooker_extensions which essentially reverts this change until I figure out a way to smar...
2008 Jan 28
3
A style question
...ebook_session_parameters.merge(:canvas=>false))%> The facebook_session_parameters includes all of the necessary info. Is this okay, or would it be better as <%= link_to "Non-Facebook view",leaders_url(:canvas=>false,:share_session=>true)%> I hate to complicate our url_rewriting any more than we have to. Is the :share_session_approach cleaner? Mike -- Mike Mangino http://www.elevatedrails.com
2007 Nov 20
3
How to test views with Nested Resources and Partials
...8: 9: %p app/views/line_items/edit.haml:6 vendor/rails/actionpack/lib/action_controller/routing.rb:1406:in `raise_named_route_error'' vendor/rails/actionpack/lib/action_controller/routing.rb:1370:in `generate'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:124:in `rewrite_path'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:103:in `rewrite_url'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:81:in `rewrite'' vendor/rails/actionpack/lib/action_controller/base.rb:605:in `url_for...
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
...1) Error: test_new(VerificationsControllerTest): ActionView::TemplateError: can''t convert String into Hash On line #8 of app/views/verifications/new.rhtml 8: <% form_tag verifications_path(@user), :method => :post do %> vendor/rails/actionpack/lib/action_controller/url_rewriter.rb: 38:in `merge'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb: 38:in `url_for'' vendor/rails/actionpack/lib/action_view/helpers/form_tag_helper.rb: 371:in `html_options_for_form'' vendor/rails/activesupport/lib/active_support/core_ext/object/...
2006 Feb 27
0
Mapping '':action/:id/:controller/'' doesn''t work
...l/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/routing.rb:419:in `generate_path'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/routing.rb:415:in `generate'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/url_rewriter.rb:44:in `rewrite_path'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/url_rewriter.rb:11:in `rewrite'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/ action_controller/base.rb:448:in `url_for'' /usr/local/lib/ruby/gems/1.8/gems/act...
2005 Jun 22
0
HTTP_HOST in rails
...t;% cache do %> 2: <%= javascript_include_tag ''download'' %> 3: <style> 4: @import "/stylesheets/download.css"; /gems/actionpack-1.8.1/lib/action_controller/request.rb:121:in `host_with_po rt'' /gems/actionpack-1.8.1/lib/action_controller/url_rewriter.rb:24:in `rewrite_ url'' /gems/actionpack-1.8.1/lib/action_controller/url_rewriter.rb:11:in `rewrite'' /gems/actionpack-1.8.1/lib/action_controller/base.rb:414:in `url_for'' /gems/actionpack-1.8.1/lib/action_controller/caching.rb:264:in `fragment_cac he_key&...
2007 Sep 21
1
generating nested resource path
....8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1273:in `raise_named_route_error'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/routing.rb:1245:in `generate'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/url_rewriter.rb:104:in `rewrite_path'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/url_rewriter.rb:69:in `rewrite'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/base.rb:522:in `url_for'' --~--~---------~--~----~----...
2006 Jan 09
1
testing UrlHelper in ActionMailer
...k 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 Jul 23
0
Link_to_remote object missing
...'Destroy''), 5: delete_contributor_project_path(params[:project_id]), 6: :method => :put, :contributor_id => contributor.id %> 7: <%= contributor.user.name %> /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/url_rewriter.rb:102:in `rewrite_url'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/url_rewriter.rb:88:in `rewrite'' /usr/lib64/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ action_controller/base.rb:621:in `url_for'' /usr/lib64/ruby/gems/1.8/gems/actionp...
2007 Oct 01
0
View Spec - Misbehaving
...ms/actionpack-1.13.3/lib/action_controller/routing.rb:1273:in > `raise_named_route_error'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1245:in > `generate'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/url_rewriter.rb:104:in > `rewrite_path'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/url_rewriter.rb:69:in > `rewrite'' > /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:522:in > `url_for'' > /usr/lib/r...
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
...<% end %> #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:1273:in `raise_named_route_error'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/routing.rb:1245:in `generate'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:104:in `rewrite_path'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:69:in `rewrite'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:522:in `url_for'' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_view/helpers/url...
2008 Aug 19
5
RSpec raising routing errors where Rails doesn''t?
Hopefully someone here can help me figure out why the ERB: <% form_for(@fund, :url => {:host => PRIVATE_HOST}, :html => {:class => ''fund'', :multipart => true}) do |f| %> raises an error in my specs: No route matches {:action=>"index"} but works fine in my app and generates the following, desired HTML: <form
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
...system/0000/0022/yellow_thumb.gif?1211334531''" alt="Yellow_thumb"/> I just want to have an image that fires a mouseover event that updates a larger image. Is there a better way? I hope someone can help me this. Full trace: vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:95:in `rewrite_url'' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:81:in `rewrite'' vendor/rails/actionpack/lib/action_controller/base.rb:616:in `url_for'' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:76:in `send'' vendor/rails/a...
2006 Feb 24
0
UrlRewriter problem in components
...ot;, :update => ''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 :p...
2007 Apr 07
1
Undefined Method 'rewrite' when calling link_to
...27:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/url_helper.rb:27:in `url_for'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action_view/helpers/url_helper.rb:75:in `link_to'' url.rewrite is defined in a module named "url_rewriter.rb", so I know it;s there. Why is this happening? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send e...
2007 Dec 20
0
Relative URL fix
...y "sessions_path" will produce "facebook_app/sessions/" even if the sessions 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 Action...
2008 Jan 25
3
More on routing, relative_root and facebooker
...ok_resources to handle options so people have a bit more flexibility (also add the GET/POST conditions to the routes) b) make it crystal clear somewhere in the docs that by default there is rewriting going on FOR you while in-canvas. I''m tempted to try out Shawns recent rewrite of the url_rewrite thing. Is there openness to a patch being accepted? still not up and running, but still trying, sudara
2006 Jan 10
4
Problem creating MockController
Hi there, I''m trying to create a mock controller to test the use of UrlHelper in ActionMailer. I''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
2008 Mar 31
13
request for change in URL pointing to facebook domain
I am requesting that we change the paths that absolutely point to the facebook URL. In the PHP client there is a method in the facebook.php file called get_facebook_url() so this is easy to change there. One reason for this: Ringside Networks is a drop in replacement for Facebook that can be used for localhost development and eventually an abstraction for most social networks - it mimics the
2008 Jan 26
14
Introducing facebooker.yml
If you are using facebooker as a plugin, you can now have all your configuration in one place, namely config/facebooker.yml. You can create this file with rake facebooker:setup. It is also generated when you install it as a plugin. It has a similar setup to database.yml with sections for each environment. You can also configure your ssh reverse tunnels. If you are upgrading, make sure to