- 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"
Post a Comment