Top "Link-to" questions

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

How to use the link_to helper to open a popup?

I just want to use link_to to open a popup. I tried something but it doesn't work: <%= link_…

ruby-on-rails-3 popup link-to
rails 3 link_to with nested content_tag to create <a href with nested span - how to?

Hi I got a noob question, I want to create the following HTML result: <a href="/controller/action" class="…

ruby-on-rails-3 href link-to content-tag
Rails 'link_to' to Download An Image Immediately Instead of Opening it in the Browser

I have a link_to Rails helper that downloads a wallpaper when clicked. But the image is loading in the …

ruby-on-rails image download link-to
rails link_to download file

I need to add a link to download the file from assets/docs/Физика.pdf I do not know how to …

ruby-on-rails link-to
Add class inline if ... (in 1 line)

I want to add a class to a link_to only if a statement is true. <%= link_to product.…

ruby-on-rails ruby class if-statement link-to
Button_to uses POST Link_to uses GET, why? ROR

I've ran into a ror problem using the link_to. Why does my link to use the GET method and …

ruby-on-rails link-to
Rails 4 Data Toggle link_to

How can I use the link_to method in Rails 4 to provide the same effect as <a href="(mysite.…

ruby-on-rails link-to
Add an 'active' class to all active links in rails?

Basically, I have a lot of code that looks like this: link_to t('.profile'), business_path(@business), class: …

css ruby-on-rails views link-to view-helpers
link_to with jquery params in rails

I want to make an in-place search in my rails app. I used button_to_remote with prototype, but now …

jquery ruby-on-rails search link-to in-place
undefined method 'link_to'

I'm writing a ruby-on-rails library module: module Facets class Facet attr_accessor :name, :display_name, :category, :group, :special ... URI = {:controller =&…

ruby-on-rails link-to url-helper