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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:06:26+00:00 2026-05-19T11:06:26+00:00

first off ive tried google and cant seem to find an answer i can

  • 0

first off ive tried google and cant seem to find an answer i can understand what i would like to do is list my questions from an active record witch i have that much working then make the question its self a link so her is my page so far!

   <h1>Listing faqs</h1>

<table>

<% @faqs.each do |faq| %>
  <tr><td width="90px"><div id="right">Question : </div></td><td><%= faq.question %></td></tr> 

<% end %>
</table>

<br />

<table>

<% @faqs.each do |faq| %>
  <tr><td width="90px"><div id="right">Question : </div></td><td><%= faq.question %></td></tr>
  <tr><td valign="top"><div id="right">Answer : </div></td><td><%= faq.answer %></td></tr>  
<% end %>
</table>

<br />

<%= link_to 'New Faq', new_faq_path %>

im amusingenter code here i can stick something in before faq.question like a link_to or something or something but im not shure what

  • 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-19T11:06:27+00:00Added an answer on May 19, 2026 at 11:06 am

    First of all, in Rails 3 forms should start with <%=, not <%.

    <%= @faqs.each do |faq| %>
      <tr>
        <td width="90px">
          <div id="right">Question : </div>
        </td>
        <td>
          <%= link_to(faq.question, faq_path(faq.id) %>
        </td>
      </tr> 
    <% end %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I'm not an expert with MySQL queries, and I can't seem to
First off I just want to say I've searched everywhere and cant find a
First off, let me define the end goal: I'd like to Wordpress (version 2.8)
First off the html row looks like this: <tr class=evenColor> blahblah TheTextIneed blahblah and
First off: I know that this isn't reliable for actually checking if I can
First off, I know I can copy "this" on instantiation, but that doesn't work
First off, I'm not asking how to find the path or use the IO
First off, I know that there are similar questions on SO, but I have
First off, I've been given a very tight deadline (read: measured in minutes) to
First off, let me clarify the platforms we are using. We have an ASP.NET

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.