Top "Link-to" questions

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

Making a conditional link_to statement in Rails?

In the code below, I'm trying to make it so that, if a user has accepted an invite, they'll be …

ruby-on-rails link-to
How do I add a span in a link_to with an image

So I have this: <%= link_to(image_tag(@model.picture.url(:thumb), :alt => ''), "/pages/you/#{something.id}", {:…

ruby-on-rails ruby ruby-on-rails-3 link-to
create a link_to in controller

I need to pass a notice to a view from controller, and I want if can to create some link …

ruby-on-rails link-to
symfony link_to in action

I need to give a link in user feedback(via setFlash method). So In my processForm() function, I want to …

php model-view-controller symfony1 symfony-1.4 link-to
rails link_to and button_to with bootstrap button class behaves differently

I've following link_to on show article view page, <%= link_to "Add Pictures", new_picture_path(article_id: @article.…

ruby-on-rails twitter-bootstrap link-to button-to
Partial form in rails 3 needing different link depending on New or Edit

I have a basic setup of views that was generated by the Rails 3 scaffolding. It gives me a partial view _…

ruby-on-rails ruby-on-rails-3 link-to
passing a parameter to the link_to method

How do you pass a parameter through the MVC using the link_to method? view: <%= link_to "Remove Tag", …

ruby-on-rails ruby model-view-controller parameters link-to
How do you pass multiple arguments to nested route paths in Rails?

I am new to Rails and normally set up a link_to helper for a normal unnested route like so: …

ruby-on-rails path routes link-to
Ruby on Rails link_to internal id

How do i use a link_to inorder to go to a specific (html) ID on a page normally if …

ruby-on-rails ruby link-to