search for: new_contractor_item

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

2005 Dec 15
3
Another session question
I want to give a user a form to create a new Product, but instead of persisting the product to the database I want to store it in a session first for category assignment, etc.. (in other controllers) So when the user describes the product on the form I have a "Save and Continue" button pointing to the action add_to_product_factory: def new_product @product = get_product end
2005 Dec 16
0
belongs_to question
...some advice here: I have a models set up like this: --------------------------------- class Project end class ContractorItem belongs_to :project end class EngineerItem belongs_to :project end Now, to create a new Project I have these views: ------------------------------------------------ new_contractor_item new_engineer_item >>> These views are set up as CSS tabs that the user can click between and modify before clicking a "Create Project" link. The goal is to collect all of the form data in a session and have that form data repopulated during the Project creation until the u...