Categorized: Rails

Adding REL attribute to Rails link_to

<%= link_to 'Pumpkin', { :action => 'index', :controller => 'main' }, :rel => 'lightbox' %>

Source

Comments

ndgiang84 → September 8th, 2008 at 10:17 pm

what does :rel => “lightbox” do?

Trey → September 14th, 2008 at 2:54 pm

It’s magic.

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD