Sunday, 15 April 2012

link to - create link_to that forwards to a second rails application using the title -



link to - create link_to that forwards to a second rails application using the title -

i need create link_to links 2 rails apps.

app1 (has link) -> app2 (forwards here)

on app2 made sure title shows instead of id in url forwarding works.

on app1, have

=link_to 'screen episode now', 'http://www.app2.com', :class => "screen_this_show"

i link_to take me

http://www.app2.com/@video.title

the @video.title accessible on app1, wondering syntax be.

also i'm using rails', "2.3.15"

change this;

link_to 'screen episode now', "http://www.app2.com/#{@video.title}", :class => "screen_this_show"

ruby-on-rails link-to

No comments:

Post a Comment