This is my code <%= link_to_function (\"Add another url\", :id=> \"add_another_url_link_id\") do |page|
I\'m trying to replace a Submit button in a form with a javascript function. I\'m able to insert the following link_to_function for su开发者_如何学编程bmitting the form:
I\'ve got a nested form like this : <% form_for setup_training(@training), :url => admin_trainings_path, :html => { :class => :form } do |f| -%>
Supposing the route map.resources :articles how do you get this /articles?most_popular using link_to method?