added ajax controller

This commit is contained in:
nilsding 2014-11-10 13:03:42 +01:00
parent 2cc1062af7
commit 8d46fe7843
5 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
class AjaxController < ApplicationController
def ask
end
end

View File

@ -0,0 +1,2 @@
module AjaxHelper
end

View File

@ -0,0 +1,3 @@
json.success @success
json.status @status
json.message @message

View File

@ -0,0 +1,9 @@
require 'test_helper'
class AjaxControllerTest < ActionController::TestCase
test "should get ask" do
get :ask
assert_response :success
end
end

View File

@ -0,0 +1,4 @@
require 'test_helper'
class AjaxHelperTest < ActionView::TestCase
end