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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:00:24+00:00 2026-05-27T00:00:24+00:00

I think something is wrong with my create method. When I create a new

  • 0

I think something is wrong with my create method.

When I create a new resume from http://localhost:3000/ or http://localhost:3000/resumes/new, I get the routing error shown below.


Routing Error
No route matches {:action=>"show", :controller=>"resumes"}

The app goes to http://localhost:3000/resumes address instead of http://localhost:3000/resumes/1. Not sure why.

Here is my code.

class SubmissionsController < ApplicationController
def create
  @resume = Resume.new(params[:resume])
  if @resume.save
    #UserMailer.created_resume_email(@user).deliver
    redirect_to :action => 'show'
    format.html { redirect_to(@resume, :notice => 'Resume was successfully created.') }
    format.xml  { render :xml => @resume, :status => :created, :location => @resume }
  else
    @title = "Create a new resume"
    render 'new'
  end
end

def show
  @resume = Resume.find(params[:id])
  respond_to do |format|
    format.html # show.html.erb
    format.xml  { render :xml => @resume }
  end
end
end

Leaflet::Application.routes.draw do
  resources :resumes
  match '/' => 'resumes#new'
end
  • 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-05-27T00:00:25+00:00Added an answer on May 27, 2026 at 12:00 am

    I may be missing something, but, I believe you need to alter your redirect_to statement.

    redirect_to resume_url(@resume)
    

    or

    redirect_to resume_path(@resume)
    

    That should redirect the user to the “show” action in your controller with the required parameter for determining which resume to get and show.

    http://guides.rubyonrails.org/layouts_and_rendering.html#using-redirect_to

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

Sidebar

Related Questions

I'm trying to get this simple PowerShell script working, but I think something is
I keep getting a exc bad access error and I think it has something
I'm think something like Facebook apps here. User generated pieces of code that people
I think I encountered something extraordinary strange in VS 2008. All the array values
How would I do this? I think this has something to do with editing
I think there must be something subtle going on here that I don't know
I think I'm missing something very obvious and its making my brain hurt. class
This is something that I think would be very useful. Basically, I'd like there
I think I might have done something right, headByRating and headByName both refer to
I think this is an escaping issue or something. When I execute the query

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.