Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:22:37+00:00 2026-06-03T01:22:37+00:00

When I generate a new controller, under a subfolder, it now cannot find the

  • 0

When I generate a new controller, under a subfolder, it now cannot find the templates, even though other controllers in the same ‘structure’ are working:

I have the following controller which sits in app/members/group_controller.rb (created by a rails g controller Members::Group command)

class Members::GroupController < ApplicationController
  def index
    render :layout => 'dashboard'
  end
end

I have a template in views/members/group/index.html.erb

I have the following relevant line in routes.rb (ie leaving out some others for clarity):

namespace :members do
    match '/group' => 'group#index'
end

rake routes shows me the following relevant line:

members_group            /members/group(.:format)                       members/group#index

When I type the url http://127.0.0.1:3000/members/group, I get the Template Missing error as follows:

Template is missing

Missing template members/group/index, application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :arb, :coffee]}. Searched in: * “/Users/mitch/Documents/Development/TME/app/views” * “/Users/mitch/.rvm/gems/ruby-1.9.2-p290/bundler/gems/active_admin-7c3e25f30224/app/views” * “/Users/mitch/.rvm/gems/ruby-1.9.2-p290/gems/kaminari-0.13.0/app/views” * “/Users/mitch/.rvm/gems/ruby-1.9.2-p290/gems/devise-2.0.0/app/views”

The routing is working to the index method, because I can eg put in a redirect and it gets acted upon, but I cannot get the template to display.

Why so?

Thanks

(Rails 3.1)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:22:38+00:00Added an answer on June 3, 2026 at 1:22 am

    This seems to be linked to how I generate the controller in the first place.

    I used upper case as follows:

    rails g controller Members::Group (and tried a few other test controllers similarly, destroying them and recreating them)

    When I destroyed the controller and ran the lower case equivelant:

    rails g controller members::group all works fine and the templates can be found

    I can’t find any info elsewhere to support this though…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I generate new model, view and controller with rails scaffold generator I get
Running the command generates new rails projects: $ rails generate controller home index The
If I generate a new controller in Rails 3.1, also a javascript file with
How do you generate views/controllers/tests for a brand new Rails 3.x application which has
At the moment when I generate a new controller, Rails also generates a .js.coffee
I use devise, and I want generate a new object scaffold under devise user
I want to know that does apple's Push Notification Server generate new device token
Existing markup: <g:textField name=identifier/> <g:remoteLink action=newId update=identifier>generate new id</g:remoteLink> Corresponding HTML markup: <input type=text
Say you have a tuple and want to generate a new tuple by applying
If my math is right, I can quickly generate a new hash value for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.