PluginRoutes
Inherits Application < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object
Implementation of a TODO application
Constants
PARSER_LIST = ["application/json"]
Implementation of a TODO application
RESPONDER_LIST = ["application/json"]
Implementation of a TODO application
TODOS = [] of Todo
Class methods
base_route
Helper for obtaining base route
index(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance methods
base_route(*args, **options)
Helper for obtaining base route
base_route(*args, **options, &)
Helper for obtaining base route
complete(index : Int32) : Nil
mark the todo, at the index provided, as completed
indexes start at 0
update(index : Int32, todo : Todo) : Todo
modify the todo at the index provided
indexes start at 0 and this will also set completed to false