search for: people_relation

Displaying 2 results from an estimated 2 matches for "people_relation".

Did you mean: people_relations
2008 Feb 20
0
HABTM problem
...Person < ActiveRecord::Base has_and_belongs_to_many :relations class Relation < ActiveRecord::Base has_and_belongs_to_many :people I want to select multiple relations and when i say Person.create(params[:person]) in controller the relation ids and and id of person should be stored in people_relation table. Here is the form for person. <%form_for (:person,:url=>{:action =>"create"},:html => { :multipart => true })do |p|%> <%= p.collection_select :relation_ids, Relation.find(:all, :order => ''relation_name ASC''), :id, :relation_name, { :selecte...
2005 Dec 26
16
How to create application with single table with primary key
I''m trying without any succes to create application in which I have one keyed table. The table structure is: CREATE TABLE employees ( pin INTEGER PRIMARY KEY, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL ); Whenever I enter new record, I need the the filed pin is also filled by user. Whenever a user edit the table, there should be option to edit or not edit the