kurenn / sabisu-rails

Simple and powerful engine for exploring your Rails api application
MIT License
127 stars 29 forks source link

NoMethodError throwing from ExplorerController#index #31

Closed RailsCod3rFuture closed 8 years ago

RailsCod3rFuture commented 9 years ago

My stacktrace says undefined method `singularize' for nil:NilClass when I access the controller for Sabisu. Maybe, you have a work around or quick fix? I'm using Windows btw.

kurenn commented 9 years ago

You probably have to set up a default resource on the initializer:

SabisuRails.setup do |config|

  config.base_api_uri = ENV['API_URL']
  config.resources = [:products,:users]
  config.default_resource = "users"

end