# Permissions

**URL:** <https://www.ruby-forum.com/t/permissions/161456>\
**Category:** Rails\
**Created:** [February 26, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/permissions/161456 "2009-02-26T17:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcruxen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ecae2f/32.png) [@fcruxen](https://www.ruby-forum.com/u/fcruxen)\
**Post date:** [February 26, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/permissions/161456/1 "2009-02-26T17:56:43Z")

</div>

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?
