Probably asked and answered, but…
Why are controller private methods inaccessible inside the block
passed to render :update ?
This does not work:
class MyController < ApplicationController
def some_action
render :update do |page|
page.replace_html ‘an_element’, some_private_method
end
end
private
def some_private_method
return ‘data’
end
end