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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:16:02+00:00 2026-06-16T03:16:02+00:00

Failures: 1) User pages signup with valid information edit with invalid information Failure/Error: before

  • 0
Failures:

1) User pages signup with valid information edit with invalid information 
 Failure/Error: before { click_button "Save changes" }
 AbstractController::ActionNotFound:
   The action 'update' could not be found for UsersController
 # (eval):2:in `click_button'
 # ./spec/requests/user_pages_spec.rb:105:in `block (6 levels) in <top (required)>'

 Finished in 1.13 seconds
 62 examples, 1 failure

 Failed examples:

 rspec ./spec/requests/user_pages_spec.rb:107 # User pages signup with valid information edit with invalid information 

I take from this that it is not seeing my update action in my users_controller.rb however it is there:

 class UsersController < ApplicationController

 def show
   @user = User.find(params[:id])
 end

 def new
   @user = User.new
 end


def create
@user = User.new(params[:user])
if @user.save
  sign_in @user
  flash[:success] = "Welcome to the Sample App!"
  redirect_to @user
else
  render 'new'
 end
end


def edit
   @user = User.find(params[:id])
 end 
end


def edit
  @user = User.find(params[:id])
end


def update
 @user = User.find(params[:id])
 if @user.update_attributes(params[:user])
  flash[:success] = "Profile updated"
  sign_in @user
  redirect_to @user
else
  render 'edit'
 end
end

And I somehow ended up with two edit actions but if I remove one of them I can get the tests to run at all. I think 99% of my troubles I’m having is with all the end’s everywhere and inserting new actions in the wrong places. Thanks for any help

  • 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-16T03:16:04+00:00Added an answer on June 16, 2026 at 3:16 am
    def edit
       @user = User.find(params[:id])
     end 
    end
    

    There is a double end here. This ends the class UsersController. Just remove all these lines and you should be fine.

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

Sidebar

Related Questions

When running some test with RSpec, I get this error (multiple times): 1) User
We use jQuery's global ajaxError() handler to alert the user of any AJAX failures:
So I have this spec describe visit /signup do before(:each) do get signup_path end
I've got a spec/controllers/add_to_carts_spec.rb : require 'spec_helper' describe CartItemsController do before (:each) do @user
Our unit tests failures are not being reported by Jenkins. Here's what we see
I'm getting many failures from the CSRF Django middleware on my site (the version
After having a period of logshipping failures going unnoticed (due to a stopped SQL
We usually put unnecessary checks in our business logic to avoid failures. Eg. 1.
I will build a system where I want to reduce single-point-of-failures, and I need
There is a password policy in place on OpenDS preventing i.e. multiple login failures.

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.