1
레일스 용 자체 포럼 플러그인을 만들고 구성 파일에 문제가 있습니다.구성 변수로 모델 이름을 설정할 수 있습니까
# Example forumally configuration file
Forumally.config do |config|
# ==> Formatter Configuration
# Set default formatter to +ActionView::Helpers::TextHelper#simple_format+
# which provide some simple formatting like wrapping with paragraphs and add
# line breaks
config.text_formatter = lambda {|text| simple_format text}
# ==> User model configuration
# Set user model name default is +User+
config.user_model = User
end
이 가능 User
모델 (또는 사용자 정보를 포함하는 모든 다른 모델) 별명 user_model
변수를 설정하는 것입니다 : 나는 같은 예제 구성 파일이 만들어 싶어 있도록 사용자 정보를 정기적으로 포함하는 어떤 모델을 선택할 수 개발자를 만들고 싶어.