Skip to content

Instantly share code, notes, and snippets.

@ritec
Forked from antonfefilov/Reserved Words for Rails
Last active December 12, 2025 23:28
Show Gist options
  • Select an option

  • Save ritec/e0cf5a026cc3dc1eea07bb6c3832e9ca to your computer and use it in GitHub Desktop.

Select an option

Save ritec/e0cf5a026cc3dc1eea07bb6c3832e9ca to your computer and use it in GitHub Desktop.

Revisions

  1. ritec revised this gist Dec 12, 2025. 1 changed file with 267 additions and 248 deletions.
    515 changes: 267 additions & 248 deletions Reserved Words for Rails
    Original file line number Diff line number Diff line change
    @@ -1,255 +1,274 @@
    index
    home
    top
    help
    about
    security
    contact
    connect
    support
    faq
    form
    mail
    update
    mobile
    phone
    portal
    tour
    tutorial
    navigation
    navi
    manual
    doc
    company
    store
    shop
    topic
    news
    information
    info
    howto
    pr
    press
    release
    sitemap
    plan
    price
    business
    premium
    member
    term
    privacy
    rule
    inquiry
    legal
    policy
    icon
    image
    img
    photo
    css
    stylesheet
    style
    script
    src
    js
    javascript
    dist
    asset
    source
    static
    file
    flash
    swf
    xml
    json
    sag
    cgi
    account
    user
    item
    entry
    article
    page
    archive
    tag
    ADDITIONAL_LOAD_PATHS
    ARGF
    ARGV
    ActionController
    ActionView
    ActiveRecord
    ArgumentError
    Array
    BasicSocket
    Benchmark
    Bignum
    Binding
    CGI
    CGIMethods
    CROSS_COMPILING
    Class
    ClassInheritableAttributes
    Comparable
    ConditionVariable
    Config
    Continuation
    DRb
    DRbIdConv
    DRbObject
    DRbUndumped
    Data
    Date
    DateTime
    Delegater
    Delegator
    Digest
    Dir
    ENV
    EOFError
    ERB
    Enumerable
    Errno
    Exception
    FALSE
    FalseClass
    Fcntl
    File
    FileList
    FileTask
    FileTest
    FileUtils
    Fixnum
    Float
    FloatDomainError
    GC
    Gem
    GetoptLong
    Hash
    IO
    IOError
    IPSocket
    IPsocket
    IndexError
    Inflector
    Integer
    Interrupt
    Kernel
    LN_SUPPORTED
    LoadError
    LocalJumpError
    Logger
    Marshal
    MatchData
    MatchingData
    Math
    Method
    Module
    Mutex
    Mysql
    MysqlError
    MysqlField
    MysqlRes
    NIL
    NameError
    NilClass
    NoMemoryError
    NoMethodError
    NoWrite
    NotImplementedError
    Numeric
    OPT_TABLE
    Object
    ObjectSpace
    Observable
    Observer
    PGError
    PGconn
    PGlarge
    PGresult
    PLATFORM
    PStore
    ParseDate
    Precision
    Proc
    Process
    Queue
    RAKEVERSION
    RELEASE_DATE
    RUBY
    RUBY_PLATFORM
    RUBY_RELEASE_DATE
    RUBY_VERSION
    Rack
    Rake
    RakeApp
    RakeFileUtils
    Range
    RangeError
    Rational
    Regexp
    RegexpError
    Request
    RuntimeError
    STDERR
    STDIN
    STDOUT
    ScanError
    ScriptError
    SecurityError
    Signal
    SignalException
    SimpleDelegater
    SimpleDelegator
    Singleton
    SizedQueue
    Socket
    SocketError
    StandardError
    String
    StringScanner
    Struct
    Symbol
    SyntaxError
    SystemCallError
    SystemExit
    SystemStackError
    TCPServer
    TCPSocket
    TCPserver
    TCPsocket
    TOPLEVEL_BINDING
    TRUE
    Task
    Text
    Thread
    ThreadError
    ThreadGroup
    Time
    Transaction
    TrueClass
    TypeError
    UDPSocket
    UDPsocket
    UNIXServer
    UNIXSocket
    UNIXserver
    UNIXsocket
    UnboundMethod
    Url
    VERSION
    Verbose
    YAML
    ZeroDivisionError
    @base_path
    accept
    Acces
    Axi
    action
    attributes
    application2
    callback
    category
    event
    contest
    word
    product
    project
    download
    video
    blog
    diary
    site
    popular
    i
    my
    me
    owner
    profile
    self
    old
    first
    last
    start
    end
    special
    design
    theme
    purpose
    book
    read
    organization
    community
    group
    all
    status
    state
    search
    explore
    share
    feature
    upload
    rss
    atom
    widget
    api
    wiki
    bookmark
    captcha
    comment
    jump
    ranking
    setting
    config
    tool
    connect
    connection
    database
    dispatcher
    display1
    drive
    errors
    format
    host
    key
    layout
    load
    link
    new
    notify
    recent
    report
    system
    sys
    message
    msg
    log
    analysis
    query
    call
    calendar
    friend
    graph
    watch
    cart
    activity
    password
    auth
    open
    public
    quote
    render
    request
    records
    responses
    save
    scope
    send
    session
    register
    login
    logout
    signup
    signin
    signout
    forgot
    admin
    root
    secure
    get
    show
    create
    edit
    update
    post
    destroy
    delete
    remove
    reset
    error
    new
    dashboard
    recruit
    join
    offer
    career
    corp
    Apache: cgi-bin
    server-status
    balancer-manager
    ldap-status
    server-info
    svn
    as
    by
    if
    is
    on
    or
    add
    dir
    off
    out
    put
    system
    template
    test
    timeout
    to_s
    type
    URI
    visits
    Observer


    Database Field Names

    created_at
    created_on
    updated_at
    updated_on
    deleted_at
    (paranoia
    gem)
    lock_version
    type
    id
    #{table_name}_count
    position
    parent_id
    lft
    rgt
    quote_value


    Ruby Reserved Words

    alias
    and
    BEGIN
    begin
    break
    case
    class
    def
    defined?
    do
    else
    find
    elsif
    END
    end
    ensure
    false
    for
    if
    module
    next
    nil
    not
    or
    redo
    rescue
    retry
    return
    self
    super
    then
    when
    count
    order
    select
    switch
    school
    developer
    dev
    test
    bug
    code
    guest
    app
    maintenance
    roc
    id
    bot
    game
    forum
    contribute
    usage
    feed
    ad
    service
    official
    language
    repository
    spec
    license
    asct
    dictionary
    dict
    version
    ver
    gift
    alpha
    beta
    tux
    year
    public
    private
    default
    request
    req
    data
    master
    die
    exit
    eval
    issue
    thread
    diagram
    true
    undef
    nan
    null
    empty
    0
    unless
    until
    when
    while
    yield
    _ FILE _
    _ LINE _
  2. Ryo Sakikawa created this gist Feb 26, 2014.
    255 changes: 255 additions & 0 deletions Reserved Words for Rails
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,255 @@
    index
    home
    top
    help
    about
    security
    contact
    connect
    support
    faq
    form
    mail
    update
    mobile
    phone
    portal
    tour
    tutorial
    navigation
    navi
    manual
    doc
    company
    store
    shop
    topic
    news
    information
    info
    howto
    pr
    press
    release
    sitemap
    plan
    price
    business
    premium
    member
    term
    privacy
    rule
    inquiry
    legal
    policy
    icon
    image
    img
    photo
    css
    stylesheet
    style
    script
    src
    js
    javascript
    dist
    asset
    source
    static
    file
    flash
    swf
    xml
    json
    sag
    cgi
    account
    user
    item
    entry
    article
    page
    archive
    tag
    category
    event
    contest
    word
    product
    project
    download
    video
    blog
    diary
    site
    popular
    i
    my
    me
    owner
    profile
    self
    old
    first
    last
    start
    end
    special
    design
    theme
    purpose
    book
    read
    organization
    community
    group
    all
    status
    state
    search
    explore
    share
    feature
    upload
    rss
    atom
    widget
    api
    wiki
    bookmark
    captcha
    comment
    jump
    ranking
    setting
    config
    tool
    connect
    notify
    recent
    report
    system
    sys
    message
    msg
    log
    analysis
    query
    call
    calendar
    friend
    graph
    watch
    cart
    activity
    password
    auth
    session
    register
    login
    logout
    signup
    signin
    signout
    forgot
    admin
    root
    secure
    get
    show
    create
    edit
    update
    post
    destroy
    delete
    remove
    reset
    error
    new
    dashboard
    recruit
    join
    offer
    career
    corp
    Apache: cgi-bin
    server-status
    balancer-manager
    ldap-status
    server-info
    svn
    as
    by
    if
    is
    on
    or
    add
    dir
    off
    out
    put
    case
    else
    find
    then
    when
    count
    order
    select
    switch
    school
    developer
    dev
    test
    bug
    code
    guest
    app
    maintenance
    roc
    id
    bot
    game
    forum
    contribute
    usage
    feed
    ad
    service
    official
    language
    repository
    spec
    license
    asct
    dictionary
    dict
    version
    ver
    gift
    alpha
    beta
    tux
    year
    public
    private
    default
    request
    req
    data
    master
    die
    exit
    eval
    issue
    thread
    diagram
    undef
    nan
    null
    empty
    0