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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:15:09+00:00 2026-06-07T22:15:09+00:00

I dont understand this error from my test Failure/Error: get new ActionController::RoutingError: No route

  • 0

I dont understand this error from my test
Failure/Error: get "new"
ActionController::RoutingError:
No route matches {:action=>"new", :controller=>"user"}

My routes file

Station::Application.routes.draw do
devise_for :users, :controllers => { :new => "new" }

and here is my test

require 'spec_helper'
describe UserController do

    it "should registrer new user" do
        get "new"
        fill_in "Email",                 :with => "abc@example.com"
        fill_in "Password",              :with => "abc123"
        click_button "Sign up"
        response.should have_content("Welcome! You have registrered successfully.")
    end 
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-06-07T22:15:11+00:00Added an answer on June 7, 2026 at 10:15 pm

    Your controller hash is incorrect. You have :controllers => { :new => "new" }, and what this is saying is that you want your ‘User’ model to handled by devise through a controller called ‘new’. This should be changed to, for example :controllers => { :registrations => "registrations" }, assuming the name of your controller is ‘Registrations’

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

Sidebar

Related Questions

I don't understand why I'm getting this error. I used the same code previously
This code is giving me this error, which I don't understand. I can't even
This code of mine keeps on throwing error i don't understand why. var id
Im using Doctrine and i dont quite understand this code here: $this->hasColumn('id', 'integer', 8,
I dont really understand why this is not working, I am being returned to
according to this code i dont understand about NSClassFromString how did i know viewControllerName
i don't understand this example from the doc : the timeIntervalSinceNow method should show
According to this site the error function erf(x) comes from math.h. But actually looking
I don't understand this behavior in javascript for inheritance I've always seen it defined
I don't understand this: + (void)beginAnimations:(NSString *)animationID context:(void *)context (void *) ----> what kind

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.