Forum: Ruby on Rails How to implement checkbox-like selection with client-side state & controls?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jon-k (Guest)
on 2009-04-07 14:16
(Received via mailing list)

This is my first Rails project, and I've just hit my first stumbling
block... I'm looking for some general pointers on how to implement the

* Allow the user to toggle the selection of words in a given string
* Change the colour appropriately (ideally using CSS class)
* Prevent non-adjacent words from being selected
* Allow the user to submit the current selection

The text needs to read as a sentence, and I want to minimise server

Is there anything in Rails or its plugins to help me out here, or is
pure Javascript the answer?

This topic is locked and can not be replied to.