Permissions

Hi, hi, hi little droogies,

I have set a small permission system, made a before_filter in application controller to check if the logged user can access the method.

Through RJS, a pop-up message appears, the basic:

render :update do |page|           page.alert "No Access." end

Whenever I use a link_to_remote with an update, the div that should get updated, after the pop-up, gets updated with js code.

yep, besides being a stupid brazilian monkey I can see why it happen, the question is: how can I show a pop-up or update one single error div to stop the links (methods executions) from showing/processing data in a mixed rjs/prototype environment? All actions gets rendered via those js libs.

Is there any way I can stop the javascript from rendering into the DOM element when using prototype?