added generate_link method to group model