Hi,
Very fustrating problem.
I've nested by /admin bits with a namespace ...
map.namespace :admin do |admin| admin.resources :dashboard map.resources :users map.resource :session admin.resources :organisations end
I'm having an issue with :organisations though.
The controller and view are in the /admin folder and the controller's class definition is ...
class Admin::OrganisationsController < ApplicationController
The model is not in an admin folder though.
I come accross an issue when I want to edit the organisation with a URL such as ...
http://localhost:3000/admin/organisations/1/edit
The error is
NoMethodError in Admin/organisations#edit
Showing app/views/admin/organisations/edit.html.erb where line #3 raised:
undefined method `organisation_path' for #<ActionView::Base:0x23c84ec>
Extracted source (around line #3):
1: <h1>Editing organisation</h1> 2: 3: <% form_for(@organisation) do |f| %> 4: <%= f.error_messages %> 5: 6: <p>
I would be amazingly grateful if anyone knows how to fix this!
Thanks
Richard.