Closed unobliged closed 12 years ago
also add admin for user administration, possibly passage administration (might need to sort out passages for site vs. for user) update: hold off on this, focus on interface first and enabling user vocab list
The interface for passages has been overhauled, but adding in administration for adding words to vocab list will require additional javascript (e.g., buttons); some thought will need to be put into implementing that Update: rails supports buttons, but still not entirely sure where to put them...
Serialization may be useful for storing User Vocab_List: http://gregmoreno.wordpress.com/2011/01/27/preventing-model-explosion-via-rails-serialization/ http://blog.rubyrockers.com/2011/08/serialized-attributes-rails-3/ http://api.rubyonrails.org/classes/ActiveRecord/Base.html -Saving arrays, hashes, and other non-mappable objects in text columns Note: already added Vocab_List column to User model
Current issues: -should the button change after you press it, and how to do that? (see twitter with follow/unfollow) -if a user has added the word, should it be removed from the passage vocab list? should the mechanism to save a word be different from the mechanism to remove it to reduce list clutter if already known? --option to hide words on vocabulary list? perhaps an option to hide individual words as default, feature for subscribers to have a vocabulary list? ---account option to automatically hide words on vocabulary list?
Implemented a user vocabulary list and some javascript to hide words on the user's list upon button press. Users can add or remove words from the passage, but there is no administrative functionality on the user view. That will be next update before closing this issue out.
Basic User vocabulary list has been implemented with option to remove words. I fixed up the view a bit with a new layout. Time to close this one.
User should be able to mark known words and this should somehow integrate with passages