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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:34:16+00:00 2026-05-24T23:34:16+00:00

I have a pages controller and my pages view directory. Say I have a

  • 0

I have a pages controller and my pages view directory.

Say I have a settings page that when visited displays a few links e.g. privacy, notifications, etc.
When each link is click the content of the pages for those links are loaded within the same page.

Now in my pages view directory I want to organize things slightly.
So instead of having the pages directory and all the view templates in that directory. I would like to have “pages” then “settings” then in the settings directory I would like to place my views files “privacy.html.erb”, “notifications.html.erb” etc.

How can I do this and still have rails 3 know what view file to load?

  • 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-24T23:34:16+00:00Added an answer on May 24, 2026 at 11:34 pm

    Just using good old render:

    render 'pages/settings/privacy'
    

    to load privacy.html.erb.

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

Sidebar

Related Questions

I have a controller's action and view page that uses a master page. The
I have some templates stored in my pages view directory: Pages/settings/edit_account/ basic_info.html.erb relatives.html.erb contact.html.erb
I have an admin controller located in controllers/admin/admin_controller.rb I also have a pages controller
I have a static_controller that is in charge of all the static pages in
I have a page. (action) and a controller called Widget. im passing in client
I have a module in which I created a custom page with controller and
I have my views render to route requests like /controller/action (for instance, /Page/Create), so
I have the following controller: public ActionResult Search(string Name, int? Friend, int? Page) It
I have a basic directory app that works fine except that it seems to
I have a static set of help pages that I serve in a Rails

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.