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 8325533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:28:12+00:00 2026-06-09T00:28:12+00:00

I have generated a new controller – murtaza@murtaza-dev:~/workspace/rails/sim-sim$ rails g controller home index create

  • 0

I have generated a new controller –

murtaza@murtaza-dev:~/workspace/rails/sim-sim$ rails g controller home index
          create  app/controllers/home_controller.rb
           route  get "home/index"
          invoke  haml
          create    app/views/home
          create    app/views/home/index.html.haml
          invoke  test_unit
          create    test/functional/home_controller_test.rb
          invoke  helper
          create    app/helpers/home_helper.rb
          invoke    test_unit
          create      test/unit/helpers/home_helper_test.rb
          invoke  assets
          invoke    coffee
          create      app/assets/javascripts/home.js.coffee
          invoke    scss
          create      app/assets/stylesheets/home.css.scss

However when I try to access it on localhost:3000/home/index, I get the below error on my webpage-

Template is missing

Missing template home/index, application/index with {:locale=>[:en],
:formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
* “/home/murtaza/workspace/rails/sim-sim/app/views”

How do I remedy it ?

  • 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-09T00:28:14+00:00Added an answer on June 9, 2026 at 12:28 am

    may be you should add “gem ‘haml-rails'” into Gemfile development group

    like this:

    Gemfile

    gem 'haml-rails', :group => :development
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing rails application to which i am adding a new controller
I have a rails app that allows a user to download a generated CSV
I have nested controller Reviews under Users, both generated by scaffold generator; view/index actions
I have an almost new setup of ROR 3.1 here and have already generated
I am new to jQuery. I have a dynamically generated row with unique ID's.
I have a gridivew with auto-generated fields, whenever there is a new set of
I have an app which will generate 5 - 10 new database records in
I have these routes defined: routes.MapRoute(CategoryList_CountryLanguage, Categories/{id}/{urlCategoryName}/{country}/{language}, new { controller = Categories, action =
I'm using Rails 3, with devise and have generated the devise views. Recently I've
I have /invoices/ controller and @service object. When /services/1/invoices/new is called, a new @invoice

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.