lib/express_templates/components/capabilities/resourceful.rb in express_templates-0.9.6 vs lib/express_templates/components/capabilities/resourceful.rb in express_templates-0.9.7

- old
+ new

@@ -180,10 +180,11 @@ config[:resource_path].call(ivar_or_resource) else config[:resource_path] end else - if helpers.respond_to?(:resource_path) + if helpers.respond_to?(:resource_path) && + helpers.resource.to_param.present? # skip on nil resource helpers.resource_path else if ivar_or_resource.respond_to?(:to_param) && ![true, false].include?(ivar_or_resource) helpers.instance_eval("#{resource_path_helper}('#{ivar_or_resource.to_param}')")