search for: bueck

Displaying 4 results from an estimated 4 matches for "bueck".

Did you mean: buck
2006 Apr 05
2
validates_uniqueness_of with habtm
it''s a blog... class Entry < ActiveRecord::Base has_and_belongs_to_many :categories end similarly: class Category < ActiveRecord::Base has_and_belongs_to_many :entries end I wish to make sure that the owner doesn''t add the same category to a given entry more than once... I''m thinking that validates_uniqueness_of should be usable here. But can''t
2006 Apr 03
5
Newbie question about acts_as_taggable
I installed the acts_as_taggable plugin that DHH wrote. Now I have met problems on using it: class Book < ActiveRecord::Base acts_as_taggable end mybook = Book.new mybook.tag_with(''red library book'') But the system tell the wrong message: undefined method `parse'' for Tag:Class d:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1123:in
2006 Apr 04
2
how to perform client side validations in RoR?
Hi, I have a form for user registration. In that form there are fields for password & confirm_password. Now in my database there is column corresponding to password field. Now at clicnt side I want to validate equality of password & confirm_password field. How to do that? I have downloaded one password validator plugin & tried to used it. But it requirs two seperate fields in
2006 Apr 01
5
Triple relationship
Hi list, I need to represent a relationship between three tables: Tags (id, name) Users (id, name, email, ... ) Documents (id, title, ... ) I created a forth table called Assignments(id, tag-id, user-id, document-id, date). I have couple of questions: Should I use belongs-to and has-many to capture this? If so, How can I do that? should I have the id as the primary key in Assignment table or