First let me mention that i am new to rails.
In my application there is a form for entering product details for
bidding. I have a view and all the data is entered into a form.
In the database there is a unique_id which is generated for each
product(this is for internal use within the company). The unique id is
generated using data from 2 fields and another generated number. all 3
needs to be concatenated.
- where is the best place to perform the operation.
I assume it is in the controller
- How do i do it. How do I take the form data and concatenate all the
values, so that the unique id is inserted into the database.