added ajax controller
This commit is contained in:
parent
2cc1062af7
commit
8d46fe7843
|
@ -0,0 +1,4 @@
|
|||
class AjaxController < ApplicationController
|
||||
def ask
|
||||
end
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
module AjaxHelper
|
||||
end
|
|
@ -0,0 +1,3 @@
|
|||
json.success @success
|
||||
json.status @status
|
||||
json.message @message
|
|
@ -0,0 +1,9 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AjaxControllerTest < ActionController::TestCase
|
||||
test "should get ask" do
|
||||
get :ask
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class AjaxHelperTest < ActionView::TestCase
|
||||
end
|
Loading…
Reference in New Issue