I’m having some issues with models that i don’t know which is the best
of doing that.
I have Post model…
class Post < ActiveRecord::Base
validates_presence_of :name, :title
and the Comment model.
class Comment < ActiveRecord::Base
If I open the console, and start write some lines:
c = Comment.new
p = post.new
c.post = p
I receive the true feedback but, what about the presence of name and
Tiago ZortÃ©a de Conto
Mac User - MAC OS X Leopard
MSN: [email protected]