I am creating a Ruby on Rails website. The users can have avatars from a limited set of avatars I provide, like turntable.fm. and again like Turntable.fm depending on the uses rank they can pick different avatars from different levels.
I am thinking of creating the avatar with scaffold, so have an MVC for it.
rails generate scaffold avatar file_name:string, level:integer
(for non ruby experts ;) ) So my avatar mysql table would have id, file_name and level as it's columns.
and also add a avatar_id to the User table.
I am wondering is this the right way to address this problem? I was just reading about BLOB and storing images in the database, do I need to do anything like that?
Thanks! Mina