Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails link_to example

### app/helpers/application_helper.rb ###

module ApplicationHelper
  def my_link_to(text, href)
    "<a href='#{href}'>#{text}</a>".html_safe
  end
end
Source by launchschool.com #
 
PREVIOUS NEXT
Tagged: #rails
ADD COMMENT
Topic
Name
2+9 =