This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zh-CN: | |
| errors: | |
| messages: | |
| expired: "您已过期,请重新申请" | |
| not_found: "没有找到" | |
| already_confirmed: "已经确认" | |
| not_locked: "未锁定" | |
| not_saved: | |
| one: "因为1个错误导致此%{resource}保存失败:" | |
| other: "因为%{count}个错误导致此%{resource}保存失败:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # <rails_root>/lib/simple_form/label_nested_input.rb | |
| module SimpleForm | |
| module Components | |
| module LabelInput | |
| extend ActiveSupport::Concern | |
| included do | |
| include SimpleForm::Components::Labels | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Users::SessionsController < Devise::SessionsController | |
| # Have to reimplement :recall => "failure" | |
| # for warden to redirect to some action that will return what I want | |
| def create | |
| resource = warden.authenticate!(:scope => resource_name, :recall => "failure") | |
| # set_flash_message :notice, :signed_in | |
| sign_in_and_redirect(resource_name, resource) | |
| end | |
NewerOlder