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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T00:42:59+00:00 2026-05-15T00:42:59+00:00

In a standard generated scaffold project, when you are on an edit page, the

  • 0

In a standard generated scaffold project, when you are on an edit page, the URL looks like;

/something/3/edit

However, when the page doesn’t validate, it runs the following code:

   format.html { :action => "edit" }

and the page url changes to;

/something/3

(no /edit)

Why is this is this and how to prevent it, as it looks inconsistent to me and thus confusing.

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-05-15T00:43:00+00:00Added an answer on May 15, 2026 at 12:43 am

    It’s because the rendering not change the URL.

    When you made an update you made :

    PUT /something/3
    

    So if it’s failed, there are no URL changing. just rendering of your action file ( not action code ).

    So if you want have /new of /edit you need made a :

    redirect_to :edit
    

    In this case, you lost all information like object.errors.

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

Sidebar

Related Questions

In http://vimeo.com/3385181 Live Validations are demoed with what appears to be a standard scaffold-generated
Under the user generated posts on my site, I have an Amazon-like rating system:
If I generate a scaffold I get the standard actions index, new, show, create
I have about 10 standard blocks of dynamically generated HTML that get included on
Is there some simple, standard way of converting my C# xml comments generated xml
I have a Windows program with the following flow: generated config file -> user
I'm using a custom-built inhouse application that generates a standard set of reports on
Currently I have a custom tool which generates vanilla-SQL (only using standard SQL), from
Can standard pointers in .Net do this? Or does one need to resort to
So standard Agile philosophy would recommend making your domain classes simple POCOs which 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.