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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:01:19+00:00 2026-06-14T10:01:19+00:00

I am fairly new to Ruby and Rails. I am using rails 3. I

  • 0

I am fairly new to Ruby and Rails. I am using rails 3. I am creating a project where people can login and post jobs and people can search jobs etc. I have created my users model and jobs model and everything is working just fine. I have started creating the home page layout and have added links to the other pages post work, find work, contact, about. I have a few questions hopefully someone can help please.

  1. When I get into the rails server and check out the project and my home page it shows the login set up from the users model and it also shows the jobs model where someone can post a job. I am trying to figure out how I can make it so the jobs do not get posted on the home page but the find work page and people can search from that page? Do I need to link the jobs model to the find work page something like that?

  2. How do I create the web pages for these other links i have established. I can not figure out how to build the page layout for the post work link i have or the other links I have for people to view the page layout. Any help is appreciated? Thanks again!

  • 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-14T10:01:20+00:00Added an answer on June 14, 2026 at 10:01 am

    What you ask is mostly the basics of Rails. You can render jobs or any other model in any view you want, you just need to “send” these jobs to the views from you controller.

    1.- Configure routes:

    #config/routes.rb
    get "/jobs" match 'jobs#index' # i.e 'controller#action'
    

    2.- Configure model controller:

    #app/controllers/jobs_controller.rb
    class JobsController < ApplicationController
      def index
        @jobs = Jobs.last(10)
        render 'index'
      end
    end
    

    3.- Configure view:

    #app/views/jobs/index.html.erb
    <% @jobs.each do |job| "do something with each #{job}" end %>
    

    This is just a birds sight overview you should check some Rails tutorials.

    About generating pages for content that isn’t in the db…

    I had this issue once and solved it like this:

    #config/routes.rb
    get "/:view" match 'home#views' # rails g controller home
    
    #app/controllers/views_controller.rb
    class HomeController < ApplicationController
      def views
        render params[:view]
      end
    end
    

    Now generate a view for each new page, lets say “About”, under /app/views/home and you can access each of them via /view_name.

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

Sidebar

Related Questions

I'm fairly new to Ruby on Rails, and I have a project with a
I'm fairly new in the Ruby + Rails scene. Although I have a very
I am fairly new to Ruby on Rails, and I clearly have an active
I'm fairly new to ruby on rails. I'm using ruby 1.9.3 and rails 3.2.6.
I am fairly new to Ruby and Rails, made a few blogs etc. I
I'm fairly new to ruby (and am using Rails) and was wondering whether the
I am fairly new to Rails, but I am pretty experienced with Ruby. Can
I'm fairly new to Ruby on Rails, and I'm attempting to create some fancy
I'm fairly new to Ruby on Rails / Git and had a few questions
Apologies in advance, am fairly new to rails. Creating a site to showcase cooking

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.