Rail's Dust: magick fields and engines

| | Comments (0) | TrackBacks (0)

If you are using login engine in your app and plan adding created_by and updated_by magic fields, you'll probably have a problem during the login, since the engine tries to update the user object while no user is already loaded in the session.

To get around the problem, I just changed the user monitor like this


# this is line 25, by the way
if user and user.id
self[:updated_by] = user.id if respond_to?(:updated_by)
end

oh, by the way, a new engine is out: help engine; this should help managing context sensitive help...

0 TrackBacks

Listed below are links to blogs that reference this entry: Rail's Dust: magick fields and engines.

TrackBack URL for this entry: http://bru.bzaar.net/mt/mt-tr4ckm3.fcgi/690

Leave a comment

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • Bru tweeted, "congrats to @hrheingold !"
  • Bru tweeted, "that was, sore kara."
  • Bru tweeted, "slre ,a"
  • Bru saved the link Rails Plugin: dynamically_tags
  • Bru tweeted, "@mazphd congrats!"
  • Bru tweeted, "ephemeral javascript time"

Wednesday

  • Bru tweeted, "@waugaman no prob, just send over your email (maybe in a dm)"
  • Bru tweeted, "introduced http://wakeme.at, my experiment with FireEagle, in a long-ish blogpost: http://tinyurl.com/64dq8t"
  • Bru tweeted, "hmm... looks like my Movable Type instance on Dreamhost fell into Internal Server Error hell. :-/"
  • Bru tweeted, "hmm... looks like my Movable Type instance on Dreamhost fell into Internal Server Error hell. :-/"
  • Bru tweeted, "going back to my slicehost playground after what seems a long while"
  • Bru tweeted, "going back to my slicehost playground after what seems a long while"
  • Bru tweeted, "srsly intense day. and only 2 coffee shots. yay!"
  • Bru tweeted, "srsly intense day. and only 2 coffee shots. yay!"
  • Bru tweeted, "retweeting: speak rails? Headshift wants you. DM, send pidgeons, smoke signals, just get in touch."
  • Bru tweeted, "retweeting: speak rails? Headshift wants you. DM, send pidgeons, smoke signals, just get in touch."
  • Bru saved the link Social network popularity around the world
  • Bru tweeted, "feels like a bottleneck"
  • Bru tweeted, "feels like a bottleneck"
  • Bru tweeted, "it's engine war o'clock here in the office"

Pages

Powered by Movable Type 4.2-en