Ruby Forum Rails-ES > auto_link

Posted by Sunny Bogawat (sunny_bogawat)
on 12.08.2008 12:34
Hi,
In my application I want to use auto_link for showing link throughout
the site.
but it couldn't work with truncate and word_wrap.also how to open that
link in new tab.
Currently I am using rails 1.2.. any solution for this problem?
Posted by Daniel Rodriguez Troitiño (Guest)
on 12.08.2008 15:36
(Received via mailing list)
On Tue, Aug 12, 2008 at 12:34, Sunny Bogawat
<ruby-forum-incoming@andreas-s.net> wrote:
> Hi,
> In my application I want to use auto_link for showing link throughout
> the site.
> but it couldn't work with truncate and word_wrap.also how to open that
> link in new tab.
> Currently I am using rails 1.2.. any solution for this problem?

First, this is a Spanish speaking Rails group, so you are supposed to
write in Spanish. You should post at
<http://www.ruby-forum.com/forum/3> if you want to use English and get
your questions answered in English.

About the question of auto_link opening links in a new tab you can use
something like this:

auto_link(your_text, :all, :target => '_blank')

That should open your page in a new window, but most of the modern
browsers open a new tab instead. Of course all the documentation for
Rails is already written, so it's better to look there before asking
this type of questions:
<http://rails-doc.org/rails/v1.2.0/ActionView/Helpers/TextHelper/auto_link>

I don't really understand your first question, so I recommend you ask
it in the other group I've linked above.

Cheers.
Posted by Manuel González Noriega (Guest)
on 12.08.2008 15:47
(Received via mailing list)
2008/8/12 Daniel Rodriguez Troitiño <notzcoolx@yahoo.es>:
> write in Spanish. You should post at
> <http://www.ruby-forum.com/forum/3> if you want to use English and get
> your questions answered in English.
>

Oops, I missed the original message, my bad. Anyway, Sunny, what Daniel 
said :)


--
Manuel, que
piensa que eres una excelente persona y medra en torno a
http://simplelogica.net y/o http://simplelogica.net/logicola/
Recuerda comer mucha fruta y verdura.