search for: rewrite_url

Displaying 6 results from an estimated 6 matches for "rewrite_url".

2007 Dec 20
0
Relative URL fix
...r 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.gsub(@request...
2008 Jul 23
0
Link_to_remote object missing
...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/actionpack-2.1.0/lib/action_view...
2008 May 24
1
link_to_remote, image_tag, mouseover is this possible?
..._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/actionpack/lib/action_vie...
2007 Nov 20
3
How to test views with Nested Resources and Partials
...6: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'' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:71:in `send'' vendor/rails/actionpac...
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
2009 Jan 16
16
Testing arbitrary post action parameters
I am working on our (newly renamed) authentication feature. The current scenario is: Scenario: Non-administrators should not set administrator ability Given I have no users And I add a user named "admin" as an administrator And I add a user named "myuser" as not an administrator When the user named "myuser" authenticates And the user