Rails todo with sinatra and knockoutjs