简体   繁体   中英

Understanding the basic inheritance in Ruby on Rails

I am new to Ruby on Rails Development and was trying to understand inheritance in Rails, I understood how do a class inherit from a parent class

For Example MyController < ActionController , in this Action Controller is the parent class. But I dont understand this syntax

ApplicationController < ActionController::Base

Specifically what is the purpose of ::Base

该语法用于指示BaseActionController名称空间内部的类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM