768x90 Getting Online Shouldn't be Tough- $7.49 .com Domains at Go Daddy

link_to_file - Call File from .rhtml or .html.erb


  • Open app/helpers/application_helper.rb
  • Paste it :
def link_to_file(name, file, *args)

if file[0] != ?/
file = "#{@request.relative_url_root}/#{file}"
end

link_to name, file, *args

end

  • In your view, put it:
<%= link_to_file "teapoci file here", "teapoci.php" %>
.


No Response to "link_to_file - Call File from .rhtml or .html.erb"

 
powered by Blogger