刚刚在 ruby-china 的源码中看到了一个方法
def set_menu_active
@current = @current = ['/topics']
end
对这个@current = @current = ['/topics']
不解。与@current = ['/topics']
会有什么区别?
具体 github 地址 https://github.com/anehing/ruby-china/blob/master/app/controllers/topics_controller.rb 193 行