[Rails] Re: confusing singleton resource

2009-02-07 Thread Zhenning Guan
I addd these code into entries show view == <%= link_to 'ca', home_path(2) %> <%= link_to "cc", entry_path(2) %> == You have a nil object when you didn't expect it! The error occurred while evaluating nil.to_sym Extracted source (around line #1): help... -- Posted via http://www.ruby-forum.

[Rails] Re: confusing singleton resource

2009-02-07 Thread CFC
map.resource is for modelif you have a model named: home then you must use: map.resources :home and generate a controller named: homes On Sat, Feb 7, 2009 at 10:52 PM, Zhenning Guan < rails-mailing-l...@andreas-s.net> wrote: > > I have a controller name homes, I would add the line > map.resource