有没有更好的方法在 Rails 中使用 wicked gem 来做到这一点?
def finish_wizard_path
public_send("#{controller_name}_path", current_user.try(controller_name.intern).id)
end
有没有更好的方法在 Rails 中使用 wicked gem 来做到这一点?
def finish_wizard_path
public_send("#{controller_name}_path", current_user.try(controller_name.intern).id)
end