Skip to content

Instantly share code, notes, and snippets.

View a-ayyash's full-sized avatar

ahmad a-ayyash

  • Home
View GitHub Profile
link_to 'Show', todo_list_todo_items_path(@todo_list, id: todo_item.id)
link_to 'Show', todo_list_todo_item_path(@todo_list, id: todo_item.id)
resources :todo_lists do
resource :todo_items
end
@a-ayyash
a-ayyash / test.rb
Last active November 3, 2016 16:17
class JSONTrie
def initialize()
@root = JSONTrieNode.new("", nil)
end
def add(entities)
list_of_entities = entities.split('.')
@root.addEntities(list_of_entities)
end