In PHP, I can set an attribute (that is not a column in database) to a model. E.g.(PHP code),
$user = new User; $user->flag = true; But in rails, when I set any attribute that doesn't exist in database, it will throw an error undefined method flag. There is attr_accessor method, but what will happen if I need about ten temp attributes?