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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:02:38+00:00 2026-06-09T03:02:38+00:00

I created an app guestbook in rails, I then created a controller using rails

  • 0

I created an app “guestbook” in rails, I then created a controller using “rails g controller entries”. After that I created index.html in app/views/entries/ and in it I wrote following :-

 <h1>Hello <%= @name %></h1>
<%= form_tag :action => 'sign_in' do %>
<p>Enter your name:
<%= text_field_tag 'visitor_name', @name %></p>
<%= submit_tag 'Sign in' %>
<% end %>

and in entries_controller.rb it is written :-

class EntriesController < ApplicationController
    def sign_in
        @name = params[:visitor_name]
    end
end

after that when I run “rails s”
and go to :-

localhost:3000/entries/

it shows me a proper view which is supposed to be there.

when I enter the name and press button it routes to localhost:3000/entries/sign_in and it says the following error :-

Template is missing

Missing template entries/sign_in, application/sign_in with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in: * “/home/redblink/rbtest/guestbook/app/views”

please let me know what is happening ???

  • 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-09T03:02:41+00:00Added an answer on June 9, 2026 at 3:02 am

    Fix:

    This error is occurred because rails server is unable to find template with name sign_in.html.erb in app/views/entries directory. You should create it.

    Explanation:

    By default rails tries to find template with same name as your action has i.e. sign_in in your case. If you don’t want to create or render this default template, you need to specify another template to render by using render method in your action. render method is defined in ActionController::Base class

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

Sidebar

Related Questions

I created an app with 2 tabs using TabLayout... I need to integrate that
I created my app using StoryBoard. Then, I added objective-c class to have .h
I created an app that acts as a launcher, which works as expected, but
I created an app for iPad (not using StoryBoards), with a UITabBarController. I added
I created an app using the iOS 5 Storyboard feature, and have decided I
I created an app with two different calculator views, each one with a separate
I created a app that downloads all document libraries in a SP Site ,
I created an app that was rejected because Apple say that my App was
I have created app using jQuery Mobile and need to get a Dialog box
I created an app.config transform for my WinForms project using Dan Abramov's solution here

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.