Sha256: c14d34eddb68ca0f862702e677de5f2bea5354e9c5a6d3bf0e5128866d110655

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 Bytes

Contents

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def html(x)
    x.gsub(/</,'&lt;').gsub(/>/,'&gt;')
  end

  def rails_path
    url_for "/caelumobjects-restful-rails.pdf"
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 site/app/helpers/application_helper.rb
restfulie-1.1.1 site/app/helpers/application_helper.rb
restfulie-1.1.0 site/app/helpers/application_helper.rb
restfulie-nosqlite-1.0.3 site/app/helpers/application_helper.rb
restfulie-1.0.3 site/app/helpers/application_helper.rb