0
任何人都可以在rails中知道以下符号的含义?这是什么意思。 => in rails
=>
def update
account = Account.find params[:id]
permitted = params.require(:account).permit(:name, :otherparam)
account.update_attributes permitted
render :json => account
end
因为我们需要使用上述表达式的目的是什么?
我已经在谷歌搜索它。但没有运气。
在此先感谢
'ES6箭头函数'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions –
'render:function(json){return account}'的缩写' –