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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:58:35+00:00 2026-06-03T15:58:35+00:00

I have a very n00b question about Rails. What are the variables and methods

  • 0

I have a very n00b question about Rails. What are the variables and methods available to a view in Rails? I had a problem today, from working on an existing project, where a method was missing from our my_model_helper.rb file. I didn’t even know that methods in a _helper.rb were available.

I know, for example, that any instance variables from the controller are available from the view, but that’s the limit of my knowledge.

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-06-03T15:58:37+00:00Added an answer on June 3, 2026 at 3:58 pm

    You’ve already named what’s available in views: instance variables defined in the controller and helpers. Helpers can be defined in _helper.rb-files and inside controllers as regular methods but you have to mark them with helper_method (link).

    Of course, methods defined in _helper.rb are available in any view but controller’s helpers are available ONLY for views that are rendered with this controller.

    I hope you already know about params, request, response, session and other core-methods to access/manipulate the state of user’s request/response.

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

Sidebar

Related Questions

I have very specific question, I cannot find a problem. I try update some
I have a very simple (n00b) question. A 20-bit external address bus gave a
I have very general problem on DNN 6.0 web site that I am working
I have very strange problem with Doxygen: I used it to create documentation from
Yeah, sorry about asking a stupid n00b question. So I have a C# program.
I have very basic question about the use of high performance cluster in our
I have very newbie question. How can i check that object of model is
I have very obvious problem, but still did not found solution to it. I
I have very little experience working with sockets and multithreaded programming so to learn
We have very old VB6 applications connecting to a Sybase database. Today they are

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.