On 7 July 2013 19:05, optimus 203 <
li...@ruby-forum.com> wrote:
> Hey Colin. Thanks for trying to help me out. I mean that if someone
> enters #ff0000 into the microblog post and submits the post, a box with
> the color red will appear instead of the text #ff0000. Make sense?
Please remember to quote the previous message as this is a mailing
list not a forum (though you may be accessing it via a forum like
interface).
So you want to save the colour value in a field in the database and
then on the next page displayed show something in that colour?
Presumably you know how to save it in the database. Do you know how
to control style (layout, colours etc) using CSS? If not then the
first thing to do is to find some tutorials on CSS. Once you
understand static styling then google for Rails Dynamic CSS to give
you some ideas on how to make it dynamic.
Colin