RE: rendering ajax?

scusate, ho postato un errore… era:
layout :controlla
def controlla request.xhr? ? nil : “system” end
sorry :slight_smile:

prova ad aggiugere nel controller qualcosa tipo:

class MyController < ActionController::Base
verify :xhr => false,
:only => [:pippo, :pippo2, :pippoN],
:redirect_to => :show_error

def pippo
end

end

la doc di verify la trovi
quihttp://api.rubyonrails.com/classes/ActionController/Verification/ClassMethods.html#M000148
Paolo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs