This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to 'Show', todo_list_todo_items_path(@todo_list, id: todo_item.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
link_to 'Show', todo_list_todo_item_path(@todo_list, id: todo_item.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resources :todo_lists do | |
resource :todo_items | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JSONTrie | |
def initialize() | |
@root = JSONTrieNode.new("", nil) | |
end | |
def add(entities) | |
list_of_entities = entities.split('.') | |
@root.addEntities(list_of_entities) | |
end |