Forum: Ruby on Rails Permissions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Felipe C. (Guest)
on 2009-02-26 18:56
(Received via mailing list)
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

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

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

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?
This topic is locked and can not be replied to.