I have generated a scaffold in rails to generate a model called transactions which has :
from(int)
to(int)
amount(double)
status(string)
kind(string)
start(datetime)
effective(datetime).
A form to this effect was automatically created. What I want to know is, is there a way to only get some of these values from the user, and add the others automatically? In this case, from, to, amount and kind need to be entered by the user. status should always be defaulted to "pending", and start should have the current date and time. effective should be null.