未初始化的常量Users :: RegistrationsController :: Shortener Devise + Gem

时间:2018-09-25 12:15:28

标签: ruby-on-rails devise rubygems url-shortener

我正在使用一种叫做Shortener的宝石:https://github.com/jpmcgrath/shortener 其目标是缩短我的网站的某些网址,例如Undefined symbols for architecture x86_64: "uS::TLS::Context::~Context()", referenced from: 会变成cmake_minimum_required(VERSION 2.8) project( opencv ) add_definitions( -std=c++11 ) find_package(OpenCV REQUIRED) find_package(ZLIB REQUIRED) include_directories(${ZLIB_INCLUDE_DIRS}) find_package(OpenSSL REQUIRED) include_directories(${OPENSSL_INCLUDE_DIR}) add_executable( opencv main.cpp Camera.cpp Camera.h Communication.cpp Communication.h) target_link_libraries( opencv ${OpenCV_LIBS} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} )

我在尝试使用该gem的Devise registration_controller.rb 中遇到问题。当我用www.mywebsite.com/users/sign_up?&invitcode="test"打电话时,我得到了www.mywebsite.com/shorturl

如果我在控制台中执行相同的命令,则它运行正常。我猜是因为Rails在我的设计模块中找不到Shortener?你能告诉我该怎么解决吗?

enter image description here

0 个答案:

没有答案