Re: [Rails] Help me with :only in Route of Rails

2013-04-04 Thread Colin Law
On 4 April 2013 06:29, haxuan lac wrote: > I'm learning with routing in rails from : > http://guides.rubyonrails.org/routing.html > and I have first code : resources :users > and last code: resources :users, :only => [:index, :show] > and have error : > undefined method `edit_user_path' f

[Rails] Help me with :only in Route of Rails

2013-04-03 Thread haxuan lac
I'm learning with routing in rails from : http://guides.rubyonrails.org/routing.html and I have first code : resources :users and last code: resources :users, :only => [:index, :show] and have error : undefined method `edit_user_path' for #<#:0x53dacb0> can you help me this problem? -- P