#183 new
vinay

tokamak file not picked up for namespaced routes

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

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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages