Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

tokamak file not picked up for namespaced routes

#183

i'm working on version 1.0.3.

my route looks like:

namespace :api do
  resources :folders
end

in controller /app/controller/api/folders_controller.rb:

class API::FoldersController < ApplicationController

  def index
    ...
    respond_with @folders
  end

end

there is an index.tokamak file in /app/views/api/folders/index.tokamak which restfulie is not picking-up.

if i remove the namespacing and keep controller at /app/controller/folders_controller.rb and tokamak at /app/views/folders/index.tokamak
it works.

bottomline: folder structure with namespacing is screwed.

Reported by vinay · June 17th, 2011 @ 09:11 AM

State: new
Milestone: none
Assigned to: nobody

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.