```ruby
def resource(resource_class=nil, action=nil)
```
missing parenthesis, but it's elsewhere too, so not sure what your policy is :-)