Access view methods from model instances in Ruby on Rails.