Method: Facebooker::Rails::ProfilePublisherExtensions#render_publisher_error

Defined in:
lib/facebooker/rails/profile_publisher_extensions.rb

#render_publisher_error(title, body) ⇒ Object

render an error while publishing the template This can be used for validation errors



23
24
25
# File 'lib/facebooker/rails/profile_publisher_extensions.rb', line 23

def render_publisher_error(title,body)
  render :json=>{:errorCode=>1,:errorTitle=>title,:errorMessage=>body}.to_json
end