nathanvda/on_the_spot — Issue #39: localized : Access is not allowed
Author: erwin
Created: 2012-01-30 16:57:24+00:00
State: open

Thanks for the work and the clear and neat install info... up and running on the thumb... ( Rails 3.1.1)

I just have a small issue : using CanCan , I am using the check_access action .. fine, but the js message error output is :
"Access is not allowed" .... and my app is localized : :fr ( french) is there anyway to localize this message ? ( datePicker is localized with an initialization function
we could have : on_the_spot-fr.js , on_the_spot-de.js , on_the_spot-es.js files.... the way DatePicker is using it...

can_edit_on_the_spot :check_access

def check_access(object, field)
# verify that the current user has access to edit/see the field of given object
end