Hi, I have a problem getting the user’s name property. What am I doing wrong? I’m going insane why it’s not getting the name:
NoMethodError at /sican/feed > undefined method `name' for #<Enumerator: User:find("sican")> Here’s the get method (commented out are some other alternatives that I’ve tried): get '/:nickname/feed' do > @user_name = User.find(params[:nickname]).name > #user = User.get(params[:nickname]) > #@user_name = user.name > end Here’s the User class: class User > include DataMapper::Resource > property :id, Serial > property :uid, String > property :name, String > property :nickname, String > property :created_on, DateTime > has n, :posts > end Any ideas? -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To view this discussion on the web visit https://groups.google.com/d/msg/datamapper/-/pW_SvkzjXHwJ. To post to this group, send email to datamapper@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.