lib/helpers/application.rb
# renders an information/message page
#
renders an information/message page
renders an information / message page
def render_reply (status, message)
      format, type = determine_out_format
      response.status = status
      if format == 'xml'
        "<message>#{message}</message>"
      elsif format == 'json'
        OpenWFE::Json.encode( message )
      else
        _erb(:reply, :layout => :html, :locals => { :message => message })
      end
    end
def render_reply ( status , message ) format , type = determine_out_format response . status = status if format == 'xml' "<message>#{message}</message>" elsif format == 'json' OpenWFE :: Json . encode ( message ) else _erb ( :reply , :layout => :html , :locals => { :message => message } ) end end
renders an information/message page
renders an information / message page
status
<not_specific>
message
<not_specific>