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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:26:02+00:00 2026-05-23T18:26:02+00:00

Is it possible that installing Devise 1.1.8 in a Rails 3.0.3 app, it somehow

  • 0

Is it possible that installing Devise 1.1.8 in a Rails 3.0.3 app, it somehow interferes with normal validations in non-devise models/controllers?

In my app, there’s a User model tied to Devise. In addition, there’s a Patient model with an attribute: mobile. (We collect the mobile number of patients for a healthcare app.)

class Patient < ActiveRecord::Base

#validates_presence_of :mobile, :message => “must be provided”

end

The above throws the following error:

You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.errors

— and —
Extracted source (around line #12):

9:       <h2><%= pluralize(@patient.errors.count, "error") %> prohibited this subscriber from being saved:</h2>
10: 
11:       <ul>
12:       <% @subscriber.errors.full_messages.each do |msg| %>
13:         <li><%= msg %></li>
14:       <% end %>
15:       </ul>

BTW, Devise works fine in displaying error messages when a new User makes an error (like not providing a password).

Also, removing :message => “must be provided” produces the exact same error.

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-23T18:26:02+00:00Added an answer on May 23, 2026 at 6:26 pm

    @subscriber and @patient are different instance variables. You probably meant to use only one of them, and make sure it is actually initialized.

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

Sidebar

Related Questions

I wrote an app that is mainly allowing the user to drag tags to
Is it possible send a parameter when installing an app from appstore? My idea
I have an old post Re-Installing IPhone App From Inside The App That old
There are a class of Android applications that enable password protection on certain user-specified
With chef, is it possible to add something to a recipe that is installing
Is it possible that Microsoft will be able to make F# programs, either at
How is it possible that .NET is finding the wrong MyType in this scenario?
Is it possible that using jQuery, I cancel/abort an Ajax request that I have
Is it possible that when you have a webpage, when you open the PDF,
It is quite possible that I may not have got the point, but I

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.