app/controllers/report_controller.rb
# handle buttons pressed on the center buttons toolbar
handle buttons pressed on the center buttons toolbar
handle buttons pressed on the center buttons toolbar
def x_button
    @sb[:action] = action = params[:pressed]
    raise ActionController::RoutingError.new('invalid button action') unless
      REPORT_X_BUTTON_ALLOWED_ACTIONS.key?(action)
    send(REPORT_X_BUTTON_ALLOWED_ACTIONS[action])
  end
def x_button @sb [ :action ] = action = params [ :pressed ] raise ActionController :: RoutingError . new ( 'invalid button action' ) unless REPORT_X_BUTTON_ALLOWED_ACTIONS . key? ( action ) send ( REPORT_X_BUTTON_ALLOWED_ACTIONS [ action ] ) end
handle buttons pressed on the center buttons toolbar
handle buttons pressed on the center buttons toolbar