edit entry model removing activerecord