why doesn't this work (setting attribute in "before_create")

bump (anyone able to point out why this doesn’t work below please - thanks)

solved it guys (just in case someone started to look at this)

  • “self.created_by = Suberb.current_user_gregs” as the syntax worked but noting
  • doh! My database column was a
    datetime not a string (prior to fixing this the column was showing NULL)

I wonder whether rails should have really picked up on this error? The only way I was able to discover this was via code/db review.