If you have a table with an attribute of type :time then to access the minutes, use min method. There is no minute or minutes method on Time extension object in ActiveSupport. 
You can list all the methods available by: myActiveRecordObject.game_time.methods.sort
 
 
No comments:
Post a Comment