Nice, you could have an updated by as well then you are nearly at a google
doc style ui (ok quite a way off).

Cheers Eaden.

On Fri, Nov 19, 2010 at 11:01 AM, Eaden McKee <e...@eadz.co.nz> wrote:

> What I do is when making an edit form, I have a hidden field - last
> changed at - this is the last updated at field from rails.
>
> On edit submit, I load the last updated time of the object I'm saving.
> If it has changed then I know someone has edited the object since.
> Could use some ajax to poll for this change and warn the user before
> they submit too.
>
> Eaden
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby or Rails Oceania" group.
> To post to this group, send email to rails-ocea...@googlegroups.com.
> To unsubscribe from this group, send email to
> rails-oceania+unsubscr...@googlegroups.com<rails-oceania%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/rails-oceania?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-ocea...@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to