resolve/refinerycms — Issue #1357: Mandatory namespaces when creating an engine
Author: eltercero
Created: 2012-02-28 17:23:59+00:00
State: open

When creating an engine like this:

$ rails generate refinery:engine job_offer title:string description:text --i18n title description

The new model is under the job_offers namespace in routes, even if I haven't add any namespace option.

```ruby
namespace :job_offers do
resources :job_offers, :only => [:index, :show]
end

I've seen in the [https://github.com/resolve/refinerycms/blob/master/core/lib/generators/refinery/engine/engine_generator.rb][engine generator] that it is not mandatory.

Am I getting anything wrong? This way my urls looks like http://whatever.com/job_offers/job_offers/1 and I'd like them to be http://whatever.com/job_offers/1

This is in the latest refinery.

Thanks!