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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:08:12+00:00 2026-06-10T14:08:12+00:00

As given on http://guides.rubyonrails.org/routing.html , creating a resourceful route will also expose a number

  • 0

As given on http://guides.rubyonrails.org/routing.html, creating a resourceful route will also expose a number of helpers to the controllers in the application. For example a resourceful route resources :photos will provide helpers like photos_path,new_photo_path etc.
Now, i can call a helper in the rails console using the helper object, for example helper.link_to "this", "that". But calling helper.photos_path in the rails console does not work,however in the controller those helpers are accessible. Why is this so ?

Thank You

  • 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-10T14:08:14+00:00Added an answer on June 10, 2026 at 2:08 pm

    route helpers are available within the app object, so you can get access to them this way

    app.photos_path     # => "/photos"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel the following self join model example given on http://guides.rubyonrails.org/association_basics.html#self-joins is incorrect. class
I started learning Ruby from ( http://guides.rubyonrails.org/getting_started.html ) and successfully installed ruby and created
Very green question here. I built a simple blog following the instructions here http://guides.rubyonrails.org/getting_started.html
I am trying to translate my Rails 3 application, read the primer at http://guides.rubyonrails.org/i18n.html#adding-date-time-formats
I basically followed the ROR guide, http://guides.rubyonrails.org/association_basics.html#the-has_many-through-association , to create the relationship models as
I followed the example given in ember application stucture guide http://emberjs.com/guides/outlets/ in order to
Given: Url - http://www.contoso.com/search.php?q= {param} returns: -html- --body- {...} ---div id='foo'- ----div id='page1'/- ----div
I am trying to do work with examples on Trees as given here: http://cslibrary.stanford.edu/110/BinaryTrees.html
Im using the following guide for getting started with rails for ubuntu 9.10. http://guides.rails.info/getting_started.html
I'm working through the 'notepad' tutorial given in the developer's guide: http://developer.android.com/guide/tutorials/notepad/index.html For some

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.