I want to write few methods in Model of my application which modifies the data received from the Form and then stores in database. How do I access attributes of table in model? How do I set default value of 'status' column as 'active'?
For e.g consider my form has three columns first_name, last_name and Age. Now I want to access this attributes from Model, split Name (received by Form) to first_name and last_name and modify age (lets say add by 10% of original age) and then save new 'age' and first_name and last_name into database.. How to do that?