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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:13:57+00:00 2026-06-08T12:13:57+00:00

I have a resource in my application that seems correct but when I open

  • 0

I have a resource in my application that seems correct but when I open index, I get an error: undefined local variable or method 'new_beta_request_path'. This happens with beta_request_approval path also.

My links look like <%= link_to 'New Beta Request', new_beta_request_path, :class => "btn" %> and <%= link_to "Approve", beta_request_approval_path %>.

All of the paths seem correct to me but something is obviously missing…

In my routes.rb, I have:

resources :beta_requests, :only => [:index, :edit, :create, :update, :destroy]

match '/request_invite', to: 'beta_requests#new', :as => "request_invite"
match 'beta_requests/:id/approve', to: 'beta_requests#approve', :as => "beta_request_approval", :via => :put

When I run Rake Routes, I get the following:

beta_requests         GET    /beta_requests(.:format)              beta_requests#index
                      POST   /beta_requests(.:format)              beta_requests#create
edit_beta_request     GET    /beta_requests/:id/edit(.:format)     beta_requests#edit
beta_request          PUT    /beta_requests/:id(.:format)          beta_requests#update
                      DELETE /beta_requests/:id(.:format)          beta_requests#destroy
request_invite               /request_invite(.:format)             beta_requests#new
beta_request_approval POST   /beta_requests/:id/approve(.:format)  beta_requests#approve

Can anyone see what I apparently cannot?

  • 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-08T12:13:58+00:00Added an answer on June 8, 2026 at 12:13 pm

    There’s no :new in the only array? You can either add it:

    resources :beta_requests, :only => [:index, :edit, :new, :create, :update, :destroy]
    

    or remove the hash argument entirely, since this way all resource actions are defined anyway.

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

Sidebar

Related Questions

I have made a build system for my web application that's rewriting all resource
I have couple resource DLLs that I currently load when application starts using following
I have a Rails application that has a Company resource with a nested resource
I have a Pseudo-terminal slave that's giving me a read/write error of Resource Temporarily
I have an application that differs for different languages by resources. Is there a
I have an application on the Compact Framework that has some large embedded resources
I have a Java Web Start application. I specify the resource (jars, images, etc)
Well, I have a application which somehow requires some system resources, but how do
I have a resource assembly that contains various strings, icons, and bitmaps that my
My problem is that the image loading seems to be uncorrectly from application resources.

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.