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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:34:28+00:00 2026-05-26T17:34:28+00:00

I’m working on a Ruby on Rails application that used the Devise authentication system.

  • 0

I’m working on a Ruby on Rails application that used the Devise authentication system.
https://github.com/plataformatec/devise

I scoured the internet for a similar problem to my own but no no avail. I guess to give you a little background, it all started out with 2 separate applications. One of which was using devise. I’m currently attempting to mix both applications into one. Even after putting the model views and controllers where they needed to I wasn’t running into any problems. However, we needed to switch from a Sqlite3 database to a Postgresql one. As soon as I modified the database.yml file to point to the new Postgres database and restarted the server I started to get various to_sym errors all throughout the application and routing errors for the new functionality that was added to the application using Devise.

Before I switched to the Postgresql database I ran my developement.sqlite3 file through a database converter — this is something that I’ve done in the past with no problems.

I’m unsure of how to debug this application as these to_sym errors are occuring all throughout.

To give you an example here’s one of the pages that stopped working:

NoMethodError in Home#index

Showing C:/Users/chunter33/Desktop/devise_forem/app/views/layouts/application.html.haml where line #19 raised:

undefined method `to_sym’ for nil:NilClass

  • 16: %a{:href => “#”}= t(“web-app-theme.profile”, :default => “Profile”)
  • 17: %li
  • 18: %a{:href => “#”}= t(“web-app-theme.settings”, :default => “Settings”)
  • 19: – if signed_in?
  • 20: %li
  • 21: %a
  • 22: = current_user.email
  • Application Trace:

    app/helpers/application_helper.rb:3:in `signed_in?’

    app/views/layouts/application.html.haml:19:in
    `_app_views_layouts_application_html_haml__944875441_29833656′

    Note: If I switch back to SQLite I no longer get any of these errors.

    I’m using Ruby 1.8.7 and Rails 3.1

    Any ideas where I can start looking?

    Let me know if there’s any additional information that you need.

    • 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-26T17:34:28+00:00Added an answer on May 26, 2026 at 5:34 pm

      I discovered the root of the problem. I used the ESF Database Migration toolkit to migrate my data from sqlite3 to Postgresql. The problem with this is that it doesn’t handle the conversion from sqlite3 to PostgreSQL properly and the auto incrementing nature of the rails generated id column doesn’t work in PostgreSQL as it does in Sqlite3. To fix this I simply needed to drop all the tables in my database, reset the database version to 0 and run a rake db:migrate while my database.yml is set to run off of the PostgreSQL database.

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

    Sidebar

    Related Questions

    I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
    link Im having trouble converting the html entites into html characters, (&# 8217;) i
    That's pretty much it. I'm using Nokogiri to scrape a web page what has
    I used javascript for loading a picture on my website depending on which small
    I've got a string that has curly quotes in it. I'd like to replace
    I have a French site that I want to parse, but am running into
    We're building an app, our first using Rails 3, and we're having to build
    I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
    I need a function that will clean a strings' special characters. I do NOT
    I'm trying to create an if statement in PHP that prevents a single post

    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.