我想使用:
class UserDetails < HyperComponent
param :user
render do
H1 { user.name }
end
代替
class UserDetails < HyperComponent
param :user
render do
H1 { @User.name }
end
如何将其启用为默认值?
我想使用:
class UserDetails < HyperComponent
param :user
render do
H1 { user.name }
end
代替
class UserDetails < HyperComponent
param :user
render do
H1 { @User.name }
end
如何将其启用为默认值?