ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Rolling with Ruby on Rails
Subject:   undefined method 'title'
Date:   2007-02-05 05:52:36
From:   fcamel
Response to: undefined method 'title'

I got the same problem, and I found the problem is in "recipe_controller.rb"

of the method "edit", I type

@recipe = Recipe.find_all(@params["id"])

rewrite this as "find(@params["id"])", it works.