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

  • Home
  • SEARCH
  • 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 8063381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:00:44+00:00 2026-06-05T11:00:44+00:00

Please, do not attack. Here’s the example and code that made me think about

  • 0

Please, do not attack. Here’s the example and code that made me think about this.

I’m studying ruby on rails and am in the midst of the MVC and params[] operator. And have been laying down some proofs or something, reminders on the inside cover of my notebook dedicated to rails, anyway

"So we don't just want to call tweet #1. Tweet.find(1) isn't enough."
===> we need Tweet.find(params[:id])

params[:id] aka params = { :id => 1 }

So I was labeling the different parts to my self, starting with the hash. “The 1 is the value, the :id is the key, the “params” is the….pointer?

Is params a pointer? Is it a variable?

EDIT: Are there any other “variables” (for a lack of a better term) that accept :keys without values other than params? Is this a special type of “container” or is it normal to just accept :keys without values
EDIT2: Are all variables technically pointers? If this true, are :keys inside of hashes technically pointers as well? Haha if this is true params is a pointer pointing to a pointer, which sounds about right.

  • 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-05T11:00:46+00:00Added an answer on June 5, 2026 at 11:00 am

    I don’t think you’re using the right terms here. Maybe this will help:

    • The params token is a variable name that holds a reference to some object.
    • Technically, params is a method that returns a reference to a Hash object.
    • In practice, you treat params as a hash because params.is_a?(Hash) == true.
    • The :id token is a Symbol object.
    • In params[:id] the :id is the key for a hash value.

    IMHO, it’s generally not useful to think of objects in Ruby as pointers–unless you’re deliberately using them that way for some reason. But yes, under the hood there are a lot of layers of indirection that turn C pointers into Ruby objects at runtime.

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

Sidebar

Related Questions

Please not that I fully understand this is a dumb ass idea, but its
Please do not promote Nautilus or Glamour here. I'm using Pharo 1.3 (without plans
Please do not mark it as a dupe of this question just yet: Bold
Please do NOT comment on bad practices used here. I am simply trying to
I am currently implementing the application that displays hierarchy using ListBoxes (please do not
First off, this is part of an extra credit homework, so please do not
Please following code I am not getting why it's not loading data. below activity
B2: Please not the snippet below which sets styles to change in reaction to
Please do not answer using the WCF Trace tool unless give explicit instructions on
LATER EDIT: Please mention not only game programming books, but also more scientific/simulation oriented

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.