Forum: Ruby on Rails Permissions

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
34459577b182f43fafb9c11177fffa43?d=identicon&s=25 Felipe Cruxen (fcruxen)
on 2009-02-26 17: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
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?
This topic is locked and can not be replied to.