Rails 大家的 root_controller 都用什么名字哇

wuwx · February 08, 2014 · Last by beiersi replied at February 09, 2014 · 2585 hits

pages_controller ? welcome_controller ? dashboard_controller ? dashboards_controller ?

index_controller

site_controller

home / static /

#1 楼 @kimigao1986 #2 楼 @cassiuschen 那 root 写成 index#index 会不会感觉有点奇怪啊

#3 楼 @heimirror 那为什么不考虑用复数的 sites_controller 然后 sites#show 呢?

#4 楼 @aptx4869 这个名字太霸气了……

#6 楼 @fahchen #7 楼 @small_fish__ 这两个名字也不错

#8 楼 @chunlea 嘿嘿,welcome 比较接近默认 routes.rb 的那个注释

index+10086

welcome or site

#9 楼 @wuwx 不是比较接近,而是就是那行注释……(我是得有多懒啊)

facet_controller、main_controller

深受 railscasts 荼毒,从来都是 static_pages_controller

main_controller +1

home / site / dashboard

home sweet home

home admin/home

You need to Sign in before reply, if you don't have an account, please Sign up first.