Skip to content

Instantly share code, notes, and snippets.

@nogweii
Created December 15, 2008 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nogweii/36154 to your computer and use it in GitHub Desktop.
Save nogweii/36154 to your computer and use it in GitHub Desktop.
class MainController < Ramaze::Controller
def index
@items = {}
# pp WishList.original
WishList.original.each do |id, tags|
@items[tags[:item]] = tags.reject {|k,v| k == :item }
end
pp @items
"List of all entires"
end
def new
"Create a new entry"
end
def login
# Add the choosen name to sesion[]
"Choose a username"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment