In this third part to a four-part article series on implementing tagging support for an ecommerce website using Ruby-on-Rails, you'll learn how to set up the application so users can assign tags to items. This article is excerpted from chapter seven of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).
Implementing Tagging Support - Changing the Style Sheet (Page 4 of 4 )
The list that displays the tags has a white background, which makes it difficult to tell apart from the rest of the page. Remember that the autocompletion field uses adivelement to show the list of tags. Thedivhas been assigned theid #tags_update, so it is easily fixed by adding the following style topublic/stylesheets/style.css:
Reload the page and add a new book again. This time, you should see the tags in a brown box, as shown in Figure 7-2. You can double-click a tag to add it to the list.
Figure 7-2.The Tags field with autocompletion
Please check back tomorrow for the conclusion to this series.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.