[Rails] create subform within rails form

2010-01-02 Thread Ahmed Abdelsalam
Hi, I have a form for a model that have relationship to other models in my application. For example, a company and employees. When I add new employee, I should select company for which employee is working. How about if the employee works in a company that is not in my database? so I want to

Re: [Rails] create subform within rails form

2010-01-02 Thread Dhruva Sagar
Hi, I am doing just that in my application. First I would like to give you a heads up that HTML does not work well with nested FORMS, at least the browsers do not. So you will have to ensure that the forms aren't nested, you can still make them appear nested / subforms by using relative

Re: [Rails] create subform within rails form

2010-01-02 Thread Conrad Taylor
On Sat, Jan 2, 2010 at 4:45 AM, Ahmed Abdelsalam li...@ruby-forum.comwrote: Hi, I have a form for a model that have relationship to other models in my application. For example, a company and employees. When I add new employee, I should select company for which employee is working. How about