Skip to content

Instantly share code, notes, and snippets.

@ctdk
Created May 15, 2009 02:51
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 ctdk/112031 to your computer and use it in GitHub Desktop.
Save ctdk/112031 to your computer and use it in GitHub Desktop.
class MessageController < ApplicationController
def index
@messagee = User.by_name(params[:nick])
end
def newpmthr
if request.post?
pmthr = PMThread.new
unless (pmthr)
raise "Something's wrong"
end
pmthr.time = DateTime.now
pmthr.save
else
raise "WTF is going on???"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment