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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:20:22+00:00 2026-05-24T21:20:22+00:00

I am using Rails3 I have many layouts in my project, I am defining

  • 0

I am using Rails3 I have many layouts in my project, I am defining layout’layout_name’ at the top of my controller. I am facing problem like all the layouts are rendering but only one layout is not rendering .. Can anybody say what is the reason?

  • 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-05-24T21:20:24+00:00Added an answer on May 24, 2026 at 9:20 pm

    Have a look at the tutorial about rendering, especially the section 2.2.13 “Finding Layout”. There are the different options listed:

    • Find the layout for all actions of one controller
      • Name the layout in the directory app/views/layouts as your controller. So when your controller is named WorkItemsController, the corresponding layout is named work_items.htmlerb
      • You may change that convention in your controller with the following code, that will search for a layout named work.html.erb:
        class WorkItemsController < ApplicationController; layout "work"; ...
    • There are even variations which allow the dynamic dispatch or even a layout by action.

    Have a look at the API for layout to see all options possible here.

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

Sidebar

Related Questions

Using rails3 - I have a project with many tasks. I want to use
I'm using rails 3.2. I have many to many type of models. Is there
I am using rails3 and gem devise and i have two roles admin and
I'm using 'rails3-jquery-autocomplete' gem, but it doesn't have multi column search, but there is
I have such problem: I'm using rails, devise gem and jQuery validation plugin. I
I am using rails 2.3 and have a problem. I have remote form, and
Using Rails 3.1.3. I have Accounts and Users. One Account can have many Users.
I'm using rails 3, and began my application with ActiveRecord. Now, I have many
Using Rails 3.0.7. I have a simple form which shows all records from one
I went through many articles regarding twitter like paging using AJAX for Rails and

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.