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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:32:38+00:00 2026-06-03T22:32:38+00:00

These are my routes: resources :auctions do resources :bids end I have the auctions#show

  • 0

These are my routes:

resources :auctions do
  resources :bids
end

I have the auctions#show view with a form for bids:

= form_for [@auction, @bid] do |form|
  = form.input :maximum
  = form.button :submit

This of course POST to auctions/:auction_id/bids.

I have this bids#create action:

def create
  #...some_logic...
  if @bid.save
    #...happy_face...
  else
    # See Below
  end
end

In this “if the bid didn’t save logic” I have:

render 'auctions/show'

This should (and does) try to render the app/views/auctions/show.html.erb but I get this error:

Missing partial bids/info-panel, application/info-panel with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee]}. Searched in:
    * "app/views"
    * "gems/devise-2.0.4/app/views"

Obviously this is a problem!
It’s looking in app/views/bids instead of app/views/auctions for the partials.

How do I make the context be app/views/auctions for those partials?

  • 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-03T22:32:40+00:00Added an answer on June 3, 2026 at 10:32 pm

    Since this is an error condition, why dont you redirect to auctions/show action instead of rendering its template.
    You can pass error metadata with your redirect, so that auctions/show action knows that its an error state and renders the form accordingly.

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

Sidebar

Related Questions

I have this in my routes: resources :cvits which produces these routes: cvits GET
I have these 2 routes : routes.MapRoute(Agenda, ConfigurationManager.AppSettings[eventsUrl] + /{year}/{month}, MVC.Events.Index(), new { year
I have two same routes resources :errors with different url's in different folders inside
What i have: Routes: resources :tests do resources :resultsets, :only => [:create, :destroy] resources
I have the following routes: resources :users do # List reviews made by user
I have next resources resources :countries do resources :cities end resources :cities do resources
Hi I've got a log file containing trace routes and pings. Ive seperated these
I have there lines in my RegisterToutes : routes.MapRoute(Pages3, {url1}/{url2}/{url3}, MVC.Page.RedirectTo(), new { url1
I'm reading these two pages resources Adding more RESTful actions The Rails Guides page
I have two classes: class User < ActiveRecord::Base :has_one :foo end class Foo <

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.