NoMethodError and Refinery Engine in Rails

65 Views Asked by At

I'm trying to reuse a refinery engine on another page in refinery. In the routes.rb i've included:

    match 'locations/:location_id/' => "locations/#index"

What is the right way to do this?

1

There are 1 best solutions below

0
On

You should create your routes in the engine route file.

Normally you would just add

resources :locations