Frederick Cheung wrote in post #976032:
> On Jan 19, 4:03pm, Jian Jinshu <[email protected]> wrote:
>> In routes.rb file, here are the corresponding lines:
>> Line 1: ActionController::Routing::Routes.draw do |map|
>> Line 53: map.with_options(:controller => "item", :conditions =>{:method
>> => :put}) do |m|
>> Line 58: m.move
>> '/item/move/:relation_type/:item_type/:item_id/:source_type/:source_id/:des
> t_type/:dest_id.:format',
>> :action => 'move'
>>
>> I don't think there is anything to do with Hash in those code...
>>
> it looks (as a guess) that the call to move, instead of tumbling
> through to method_missing and created a named_route is calling a
> method defined by rake. Does changing the name of the route make any
> difference?
>
> Fred

Thanks for all the replies. It turns out there is something wrong with 
the line 58 in routes.rb. So i commented this line, and it works:-)

Thank you all.

-- 
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 email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to