artimys
4/14/2017 - 6:42 PM

Rails Controllers

Random tips and tricks for Controllers

# Rails 3
def index
  @currency = view_context.number_to_currency(500)
end

# Rails 2
def index
  @currency = @template.number_to_currency(500) 
end