[Rails] Convert Hex Color Value To HTML Color
Hey everyone. I'm new to ROR, and I followed and implemented the
beginner Ruby On Rails Tutorial (2nd Edition) code, and its working
great. For those who are unfamiliar, this creates a site that acts much
like Twitter.
If someone enter the hex value for a color (say #ff0000 for red), I
would like for ROR to convert that to an HTML color box representation
in
the post that is created. Any ideas on how to accomplish this?
Thanks in advance for the time and help.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6b747e837528c79cb3a8ddbb0f6faace%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home