Questions tagged [link-to-function]

link_to_function is a Rails 3 helper that allows to create a link whose onclick handler triggers the passed JavaScript. Deprecated in Rails 4.

The function works in one major Rails release and removed from another. That's why use of this is puzzling a lot of people.

18 questions
0
votes
2 answers

Symfony image button for link_to function

I have a form that when originally submitted, it goes into a page where a user can "preview" the item before posting it to the site. I have these 3 links, but I would like to change it from the default text links to image buttons that they can…
GoRivera
  • 173
  • 1
  • 13
0
votes
1 answer

rails 3.2.3 - javascript - application.js - link_to_remove_fields

I am trying to implement the idea of link_to_remove_fields from Ryan's "railscasts episode-197 ". I seem to be having problems with the javascript file " My application.html.erb file includes javascript: <%= javascript_include_tag "application"…
adamteale
  • 940
  • 2
  • 12
  • 27
0
votes
1 answer

Getting this link_to helper to invoke a view- getting routing error

I have a users_controller which has this function in it: def process_csv puts 'processing csv file' end Then I have a show.html.erb file with a "link_to" tag on it. <%= link_to 'Click HERE to open file', @user.image.url %>


<%=…
banditKing
  • 9,405
  • 28
  • 100
  • 157
1
2