Top "Link-to" questions

link_to is the method in Ruby on Rails that is used to create link tags within views.

:confirm in rails not working

I just started coding in ruby on rails and I've been following a guide which is using a more outdated …

ruby-on-rails link-to button-to
Can I use a link_to to generate a link with a span inside?

I am basically trying to get this result: <a href="#" class="button small-button green-button"> Log in <span …

ruby-on-rails hyperlink href link-to
Ruby on Rails: link-to using post method but parameters are in the URL

I'm using link_to 'My link', path(:arg1 => session[:arg1], :arg2 => session[:arg2],:arg3 => anyobject.id), :method =&…

ruby-on-rails link-to
Rails 3 - How to send data on link_to :remote=>true?

I am trying to figure out the new link_to in Rails 3 but i still don't get it In Rails 2 …

ruby-on-rails-3 link-to link-to-remote
Rails 3 - Javascript :confirm not working for link_to and button_to with :method => :delete

In my index.html.erb file I'm trying to display the title to my object (a "listing") and the normal "…

javascript ruby-on-rails link-to
SEO/Rails - How to add the title tag to every "link_to"

I'm surprised Rails creator didn't think about that, if someone can help, would be great. How can we do to …

ruby-on-rails seo link-to
Call jQuery function from Rails link_to

I have a ruby loop that creates a list of comments.. I wonder if I can attach jQuery function to …

javascript jquery ruby-on-rails link-to
Rails 2 to Rails 3 : using link_to instead of link_to_remote (including remote and update)

A quick and easy answer I'm sure. I'm upgrading a Rails project from version 2 to version 3 and replacing a load …

ruby-on-rails ruby ajax ruby-on-rails-3 link-to
Why Rails "link_to" does not work for delete action?

In index.html.erb I display all products, and next to each product I have Edit and Delete actions: <% @…

ruby-on-rails ruby-on-rails-3 link-to
Specifying a :format in link_to doesn't work in rails 3.2.2

I'm moving a project from rails 3.1 to rails 3.2.2 and I have this: = link_to 'CSV', :action => 'list', :search => @…

ruby-on-rails-3 ruby-on-rails-3.2 link-to