On 17 August 2010 16:18, Kaspir Ghost <[email protected]> wrote:
> If this is a really stupid noob question I apologize in advance, and
> appreciate any answers I get from this.
>
> I made a blog with rails, and just finished with the design. Upon
> creating my first real post, I realized I couldn't put links in my
> posts. I mean I can write links yes, but what I want to do is this:
>
> [code]
> blah blah blah <a href="http://www.site.com";>site</a> blah blah blah
> [/code]
>
> So I really have no idea what to do. I googled html filters, url
> filters, and url parsers for about an hour before I posted this, so any
> information would be helpful. Thanks :D

Do you mean that you want the poster to be able to type <a
href="http....> (which is dangerous as Dave has pointed out) or that
you want the poster just to type www.site.com and that you will
automatically turn this into a link (in which case you could use
regular expressions to generate the links)?

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to