Eric-Guo / wechat-starter

WeChat web app with wx_pay in rails
349 stars 69 forks source link

ActionView::Template::Error (undefined method `trusted_domain_fullname' #16

Closed tianbymy closed 8 years ago

tianbymy commented 8 years ago

ActionView::Template::Error (undefined method trusted_domain_fullname' for Users::RegistrationsController:Class): 1: <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> 2: <%= wechat_config_js debug: false, api: %w(closeWindow) -%> 3: 4: <div class="weui_msg"> 5: <div class="weui_text_area"> app/views/devise/registrations/new.html.erb:2:in_app_views_devise_registrations_new_html_erb__1080018874292238542_70288383590620'

Eric-Guo commented 8 years ago

Need configure trusted_domain_fullname at wechat.yml.

development:
  <<: *default
  trusted_domain_fullname: "http://your_dev.proxy.qqbrowser.cc"