Displaying 2 results from an estimated 2 matches for "majidnakit".
2006 Mar 29
11
why belongs_to does not like validation?
This works :
class Recipe < ActiveRecord::Base
belongs_to :category
end
But (when I add validation) this does not work :
class Recipe < ActiveRecord::Base
belongs_to :category
validates_length_of :category, :within => 6..20
validates_uniqueness_of :category, :message => "already exists"
end
thank you
--
View this message in context:
2006 Mar 29
10
newbie question
Hi, I am new to Rails, I followed the cookbook tutorial, it worked fine, but
when I started another tutorial called todo :
when I type : http://127.0.0.1:3000/todo/new
I get this error :
Routing Error
Recognition failed for "/todo/new"
please help me.
--
View this message in context: http://www.nabble.com/newbie-question-t1359958.html#a3643454
Sent from the RubyOnRails Users forum