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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:31:08+00:00 2026-05-31T05:31:08+00:00

I have recently decided to deploy my site test onto my home server using

  • 0

I have recently decided to deploy my site test onto my home server using a combination of Ruby on Rails, Passenger (mod_rails)/Apache and Capistrano to deploy. I am trying to render my home page, which at the moment has no database related elements and is all very simple.

The file I’m trying to render is:

<footer>
  <nav class="round">
    <ul>
      <li><%= link_to "About", '#', %></li>
      <li><%= link_to "Contact", '#', %></li>
    </ul>
  </nav>
</footer>

I’m sure its simple syntax or something, but here is the error log part that I believe is important:

  Rendered layouts/_footer.html.erb (9.4ms)
Completed 500 Internal Server Error in 276ms

ActionView::Template::Error (/var/rails/releases/20120309031203/app/views/layouts/_footer.html.erb:4: syntax error, unexpected ')'
...pend= ( link_to "About", '#', );@output_buffer.safe_concat('...
...                               ^
/var/rails/releases/20120309031203/app/views/layouts/_footer.html.erb:5: syntax error, unexpected ')'
...nd= ( link_to "Contact", '#', );@output_buffer.safe_concat('...
...                               ^
/var/rails/releases/20120309031203/app/views/layouts/_footer.html.erb:10: syntax error, unexpected keyword_ensure, expecting ')'
/var/rails/releases/20120309031203/app/views/layouts/_footer.html.erb:12: syntax error, unexpected keyword_end, expecting ')'):
    1: <footer>
    2:   <nav class="round">
    3:     <ul>
    4:       <li><%= link_to "About", '#', %></li>
    5:       <li><%= link_to "Contact", '#', %></li>
    6:     </ul>
    7:   </nav>
  app/views/layouts/application.html.erb:16:in `_app_views_layouts_application_html_erb___909272938_79472450'

I hope this is enough, but if you need more, please ask.
Thanks.

  • 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-31T05:31:09+00:00Added an answer on May 31, 2026 at 5:31 am

    the root cause is this line of code:

    <li><%= link_to "About", '#', %></li>
    

    here, the link_to() method only accept 2 parameters (“about”, “#”), however there’s a “,” in the end. so it got errors.

    Also, if you just want to render a link such as:

    <a href="#">About</a>
    

    Please use “link_to_function” instead. e.g.

    <li><%= link_to_function "About", '#' %></li>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have designed a store using PayPal Express Checkout. They have recently decided that
I have recently been researching the SQL Server spatial data types and have decided
I've recently decided that I just have to finally learn C/C++, and there is
I have recently installed .net 3.5 SP1. When I deployed a compiled web site
I have recently started using Vim as my text editor and am currently working
I have recently decided to switch all my current plain mysql queries performed with
I've been working on a commandline application, and have recently decided to add a
I have recently decided to move my connection strings to machine.config as this seems
I have a simple SQLite database I use to track invoices. I recently decided
I have recently decided to adopted Codeigniter as a PHP framework. I would like

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.