Top "Link-to" questions

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

"render :nothing => true" returns empty plaintext file?

I'm on Rails 2.3.3, and I need to make a link that sends a post request. I have one that looks …

ruby-on-rails rest link-to
file download link in rails

I would like to give visitors the option to download some pdf. I have tried: <%= link_to "abc", "/data/…

ruby-on-rails ruby-on-rails-3 hyperlink download link-to
Using Rails link_to for links that post

I have a link that I need to submit a post request with. Normally, I'd use jQuery and prevent the …

ruby-on-rails ruby-on-rails-3 post ruby-on-rails-3.2 link-to
adding a class to a link_to is breaking the link

I'm using link_to in RoR 3 When I use it like this, it works fine: <%= link_to "Add to …

ruby-on-rails link-to
How to add confirm message with link_to Ruby on rails

I wanted to add confirmation message on link_to function with Ruby. = link_to 'Reset message', :action=>'reset' ,:confirm=&…

ruby ruby-on-rails-3 ruby-on-rails-3.1 ruby-on-rails-3.2 link-to
Rails link_to with inline styling

I must change a link_to tag color without using a CSS class, how can I do? I've tried something …

ruby-on-rails link-to
rails link_to :remote

I have the following: <%= link_to my_path, method: :delete, confirm: 'Delete?', class: 'link-delete', 'data-message' => 'Are you …

javascript ruby-on-rails ajax link-to
Ruby on rails 3 link_to controller and action

I know this is probably a pretty simple concept. I am trying to create a link to a controller and …

ruby-on-rails-3 controller action link-to
Embedded HTML in link_to body in Rails

What is the best way to go about getting embedded HTML in the body of a link generated with the …

ruby-on-rails link-to
How do I defined a variable link_to to an external URL

On my site a user has a personal profile with a link to his personal external website. The url of …

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