0
當前當添加一個控制器它有前。 /儀表板/索引 我如何實現/儀表板/ editaccount前?我如何「渲染」這個模板(視圖)?更多的功能在一個控制器/東西/東西
class DashboardController < ApplicationController
def index
u = Users.find(session[:id])
@username = u[:username]
end
def editaccount
##Some code??
end
end
我完全在軌道上的紅寶石新,所以希望你能回答我的初學者問題。