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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T01:36:08+00:00 2026-06-19T01:36:08+00:00

# GET system_accounts/:id def show # If a system account already exists in session,

  • 0
# GET system_accounts/:id
  def show 
    # If a system account already exists in session, it was found from a search with the account id
    # Otherwise, this is a new search for a system account by the given id
    if params[:id]
      Rails.logger.debug { "Querying for the account with id: #{params[:id]}" }
      response = query_account(CGI.escape(params[:id]))
    if response.is_a?(Net::HTTPSuccess)
        @account = JSON.parse(response.body)
    unless @account.empty?
      redirect_to system_accounts_path(params[:id])        
    end 
    end

The above is my show action. So the thing is if i search with my id=2 i should get the resultant link to be system_accounts/2 but what i get is system_accounts.2 . why a . instead of a / . Anything i am missing out on ?

  • 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-19T01:36:09+00:00Added an answer on June 19, 2026 at 1:36 am

    if you are closely following the rails convention, you should use system_account_path(params[:id]) (without an s). 2 is interpreted as the format so it is appending .2 to the url because system_accounts_path most probably points to the index action of system_accounts controller. remove the s to point to the show action.

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

Sidebar

Related Questions

I use NHiberante at my win service. Sometimes I get System.ObjectDisposedException: Session is closed!
When I try and run django, this is what I get: /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python manage.py runserver
How do I get the system date and time in this format: $systime=12/january/2010 10.30
Startup info: My system don't user subdomains to get the right account! I use
When using Meteor , with the new authentication system, how can I get facebook
I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
I'm targeting .NET 3.5, but cannot get System.Data to come up in Intellisense. What
I just got my keydown method to work. But i get system beep everytime
How would I get the system's current language and use that for the ResourceBundle?
I want to get the system icon of a specified folder, but maybe the

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.