Line 7 to 15 should be written as a method of any model.
`edit` action on controller should be more simple.
It should only build some instance variables for showing on the view file.