Rails paperclip and angular