working local storage

updated ruby form for tips/index