undefined method `has_link?'