Skip to content

Instantly share code, notes, and snippets.

View dayudodo's full-sized avatar
💭
coding...

Adam Lu dayudodo

💭
coding...
View GitHub Profile
@HealthGrid
HealthGrid / devise.zh-CN.yml
Last active October 12, 2020 17:12
for devise 4.2.0
# Chinese (China) translations for Devise(4.2.0)
# by HealthGrid (https://github.com/HealthGrid)
zh-CN:
devise:
confirmations:
confirmed: "您的帐号已经确认,您现在已登录。"
send_instructions: "几分钟后,您将收到确认帐号的电子邮件。"
send_paranoid_instructions: "如果您的邮箱存在于我们的数据库中,您将收到一封确认账号的邮件。"
failure:
@Yorgg
Yorgg / badge_creator.rb
Last active November 21, 2023 13:21
Creating badge and achievements functionality in Ruby on Rails
#Step 1 - Create achievement, badge, and user models
#Create an Achivement model
#This will contain all of the achievements
#model
class Achievement < ActiveRecord::Base
has_many :badges
has_many :users, through: :badges
end