某天一朋友突然发来一个地址,问我怎么获取这张图片的后缀名?? 将代码放在下面以供参考:
class User < ActiveRecord::Base has_many :memberships has_many :groups, :through => :memberships class Group < ActiveRecord::Base