unobliged / plymlet

plymlet rails test code
http://plymlet.herokuapp.com
0 stars 0 forks source link

create a helper function: unique_words_from_passage #5

Closed dpaola2 closed 12 years ago

dpaola2 commented 12 years ago

This should take a text argument (string) and return a list of all the words in the passage with duplicates removed.

unobliged commented 12 years ago

have this working now, it returns an array of unique words with

  • tags on them. I have it output as an unordered list on the show.html.erb file

  • dpaola2 commented 12 years ago

    Awesome. It's generally good practice to store data without presentation information -- in this case, don't store the

  • tags, just store the word. Then wrap them in
  • tags in the template.