var Person = Backbone.Model.extend();
对于新手来说,安装 rails 有时确实是一件痛苦的事。这也不懂,那也不懂。尽管网上这教程一搜一大把,但如何‘选择’又是另一个大问题。
网上教你如何安装 rails 的教程可以说数不胜数,这也只是其中这一,作者希望能够对你有帮助~~~
首先说明,这教程不适用于windows,作者本人在多个 Ubuntu 版本多次安装成功过,在 Mac 下更改部分命令仍然可用,其它 *inux ‘大同小异’。
第一步,打开终端 Ctrl+Alt+T。 然后升级一下源,执行:
sudo apt-get update
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: | |
admin: | |
js: | |
true: 是的 | |
false: 不是 | |
is_present: 已经存在 | |
is_blank: 不存在 | |
date: 日期 ... | |
between_and_: 从 ... 到 ... | |
today: 今天 |
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 AuthenticationsController < Devise::OmniauthCallbacksController | |
before_action :create | |
def github | |
end | |
def create | |
puts "=== omniauth is: #{request.env["omniauth"]} ===" | |
puts "=== omniauth.auth is: #{request.env["omniauth.auth"]} ===" |
NewerOlder