hi

this seems to give issues:

simply doing,

def helper_routes
 with_routing do |set|
    set.draw { set.connect ':controller/:action/:id' }
    [..]
end
end

throws

NoMethodError: undefined method `connect' for
#<ActionController::Routing::RouteSet:0x2346860>

i don't quite get why since RouteSet#draw simply yields to Mapper
which does connect.

rodney



I don't understand why using the helper

On 6/1/06, Abdur-Rahman Advany <[EMAIL PROTECTED]> wrote:
Oops... common way of doing it would be redirect_to(:id => nil)

Abdur-Rahman Advany wrote:
> btw, the default way of doing this would be redirect_to(:action =>
> 'index')
>
> Abdur-Rahman Advany wrote:
>> You need to set the id or action to nil, unless you change the
>> controller to something else than video it will include all the
>> params...
>>
>> try redirect_to(:controller => "video", :action => nil)
>>
>> -- Abdul
>>
>> Hampton wrote:
>>> I have an application that broke.
>>>
>>> This may be an unwanted behaviour, or not, but I was working with
>>> this as a feature for using some crazy-routing for pretty urls.
>>>
>>> url = request.parameters    => {"action"=>"index", "id"=>"21",
>>> "controller"=>"video"}
>>>
>>> then, I would do this.
>>>
>>> redirect_to(:controller => "video")
>>>
>>> The url it redirects to is...
>>>
>>> "video/index/21"
>>>
>>> While, I would expect (and the previous behaviour was)..
>>>
>>> "video"
>>>
>>> Am I crazy?
>>>
>>> -hampton.
>>>
>>> That means its understanding the deletion of the :do directive, but
>>> is keeping the :id and :action around.
>>>
>>> On 6/1/06, *Jamis Buck* <[EMAIL PROTECTED]
>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>
>>>     Just a quick update--the routing rewrite has been checked in. We've
>>>     already noticed a few things broken and have patching them this
>>>     morning, but we'd love to hear from those of you willing to test
>>>     their apps with the bleeding edge.
>>>
>>>     Thanks!
>>>
>>>     - Jamis
>>>     _______________________________________________
>>>     Rails-core mailing list
>>>     Rails-core@lists.rubyonrails.org
>>>     <mailto:Rails-core@lists.rubyonrails.org>
>>>     http://lists.rubyonrails.org/mailman/listinfo/rails-core
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Rails-core mailing list
>>> Rails-core@lists.rubyonrails.org
>>> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>>>
>>
>> _______________________________________________
>> Rails-core mailing list
>> Rails-core@lists.rubyonrails.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>>
>
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core



--
Rodney
http://www.pinupgeek.com
http://www.dutchrailers.org
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to