class GuestPerson
  def method_missing( meth_name )
    raise LoginRequiredError
  end
    
  def respond_to( meth_name )
    true
  end
    
  # overwrite ruby's id method
  def id
    raise LoginRequiredError
  end
end

I’m afraid of Rails.
Rails has the power to seriously damage ecosystem of Ruby software
Jonesy__: Hi, in my app I am getting InvalidAuthenticityToken. I have cleared the DB (inc Sessions), cleared all my browser sessions etc.. If i view source on the HTML forms they all have the auth token hidden field. I’m stuck!
princezuda: jonesy: what OS are you on?
01:59 Jonesy__: OSX/Webrick
princezuda: jonesy: I don’t know that much about mac but did you delete files in trash can?
— #rubyonrails
23:18 actsasjason: does anyone write test in here?
23:18 RubyPanther: no I write them directly into emacs
— #ror
RubyPanther: testing isn’t nearly as important as important a skill as understanding how to teach people why testing is important.
— #rubyonrails - “wait. what?”
blaines: What’s a good way to save an activerecord object in a callback that won’t cause an infinite loop
— #rubyonrails - RTFM
rhizmoe: unless User.first, User.create(…); end
— #rubyonrails - how to implement an Admin role security check
Got a WTF you want to report? Email us.