Just FYI...

In reply to earlier post (system didn't let me update earlier post):
http://groups.google.com/group/activescaffold/browse_frm/thread/b6fa0443a994e014/538f0bd830b171ce?hl=en&lnk=gst&q=authorized_for_update%3F+self#538f0bd830b171ce

I see that authorized_for_update? received two records for every
record that is listed. One EMPTY record and the other correct one. By
adding a line to return true if it's a empty record, I was able to
resolve this issue.

def authorized_for_update?
  p self # This will print to the console two records for each record
in the list
  return true if(self.new_record?)
  :
  : <Your code here>
  :
end

That should work. Chao!
Sri
Note: It's probably the same case with authorized_for_show? as well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to