add weixin controler for verify weixin

This commit is contained in:
2013-04-16 23:17:18 +08:00
parent ad0145abad
commit f910b0baef
7 changed files with 39 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
+3
View File
@@ -0,0 +1,3 @@
// Place all the styles related to the wei_xin controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
+7
View File
@@ -0,0 +1,7 @@
class WeiXinController < ApplicationController
def verify
echo_str = params[:echostr]
render text:echo_str
end
end
+2
View File
@@ -0,0 +1,2 @@
module WeiXinHelper
end