search for: userdetail

Displaying 3 results from an estimated 3 matches for "userdetail".

2006 Jan 11
7
Create a relationship with 2 or more tables on 1 insert
userstable: |id|name|password| userdetailstable: |id|col1|col2|col3|user_id| this is my code: [code] def create @user = User.new(@params[''user'']) @userdetail = Userdetail.new(@params[''userdetail'']) if @user.save and @userdetail.save flash[:notice] = "Save succeeded..."...
2006 May 23
0
Noob: Validation Errs Don''t Display When Saving Object Tree
I''ve got the following model: User < AR::Base has_one :user_detail UserDetail < AR::Base belongs_to :user has_one :address Address < AR::Base belongs_to :user_detail I''ve a form to gather the data, and it includes partials for each class. Each partial has an error_messages_for ''class'' snippet which should display the errors relevant...
2006 Aug 10
5
RJS in Internet Explorer to update a list box
Hi, I''m trying some RJS to update a series of list boxes in which the user selects a state, and the following list gets updated with a list of counties, and the same for the next list of areas. My code works perfectly (albeit a bit slow) on Firefox, but on Internet Explorer it clears the list box (instead of filling it) and Netscape shows all the counties cramped together on one