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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:39:01+00:00 2026-05-20T07:39:01+00:00

I am the getting the following error when hitting my home page. I’ve spent

  • 0

I am the getting the following error when hitting my home page. I’ve spent hours trying to figure it out with no luck. Looking at the debug output it seems that the member_session object is not picking up any of the methods available on the member object class.

This page contains two forms, one for registering and one for logging in.

 NoMethodError in Members#new

    Showing /home/thomas/railsProjects/draughtsWorld/app/views/common/_loginPanel.html.erb where line #23 raised:

    Model MemberSession does not respond to nickname

    Extracted source (around line #23):

    20:                     
    21:      <div class="">
    22:         <%= f.label :nickname, "Nickname" %>
    23:         <%= f.text_field :nickname, :class => "sign_in_textbox" %>
    24:       </div>          
    25:      
    26:       <div class="">

    Trace of template inclusion: app/views/members/new.html.erb

    Rails.root: /home/thomas/railsProjects/draughtsWorld
    Application Trace | Framework Trace | Full Trace

    app/views/common/_loginPanel.html.erb:23:in `block in _app_views_common__login_anel_html_erb__835376200_89586240__736259602'
    app/views/common/_loginPanel.html.erb:6:in `_app_views_common__login_anel_html_erb__835376200_89586240__736259602'
    app/views/members/new.html.erb:7:in `_app_views_members_new_html_erb___591788923_89768980__1034002099'
    app/controllers/members_controller.rb:33:in `new'

member.rb

class Member < ActiveRecord::Base
  acts_as_authentic
end

member_session.rb

class MemberSession < Authlogic::Session::Base
end

members_controller.rb:

class MembersController < ApplicationController
  # GET /members
  # GET /members.xml
  def index
    @members = Member.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @members }
    end
  end

  # GET /members/new
  # GET /members/new.xml
  def new
    @member = Member.new
    @member_session = MemberSession.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @member }
    end
  end

member_sessions_controller.rb:

class MemberSessionsController < ApplicationController
  def new
    @member_session = MemberSession.new

    respond_to do |format|
      format.html # new.html.erb
      format.xml  { render :xml => @member_session }
    end
  end

    def create
      @member_session = MemberSession.new(params[:member_session])
      if @member_session.save
        redirect_to root_url
      else
        format.html { render :action => "new" }
        #render :action => :new
      end
    end

    def destroy
      @member_session = MemberSession.find
      @member_session.destroy
      redirect_to root_url
    end
  end

loginPanel.html.erb

<%= form_for @member_session, :html => { :class => "block" } do |f| %>

      <%= debug(@member)%>
      <%= debug(@member_session.methods)%>

      <h4>Already Signed Up?</h4>

      <% if @member_session.errors.any? %>
        <ul>
          <% @member_session.errors.full_messages.each do |msg| %>
            <li><%= msg %></li>
          <% end %>
        </ul>
      <% end %>

     <div class="">
        <%= f.label :nickname, "Nickname" %>
        <%= f.text_field :nickname, :class => "sign_in_textbox" %>
      </div>          

      <div class="">
        <%= f.label :password, "Password" %>
        <%= f.password_field :password, :class => "sign_in_textbox" %>
      </div> 

      <p class="submit">
        <%= f.submit "Login", :class => "submit_button" %>
      </p>

      <p class="lost_password">
        <a href="">Forgot you login details?</a>
      </p>

    <% 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-05-20T07:39:02+00:00Added an answer on May 20, 2026 at 7:39 am

    This is an answer:

    Model MemberSession does not respond to nickname

    Does Member has column nickname?

    I think this it should be either username or login, so try to change yours view to:

    <%= f.label :username, "Nickname" %>
    <%= f.text_field :username, :class => "sign_in_textbox" %>
    

    or

    <%= f.label :login, "Nickname" %>
    <%= f.text_field :login, :class => "sign_in_textbox" %>
    

    EDIT:
    Or you can try to specify column name in authlogic configuration:

    acts_as_authentic do |c|
      c.login_field = :nickname
    end 
    

    It should do the job.

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

Sidebar

Related Questions

I am getting following error when I am trying to get WebResponse using WebResponse
I am getting following error while running a JSP page: org.apache.jasper.JasperException: jsp:getProperty for bean
I'm getting following error, whn trying first Github push: [rejected] master -> master (non-fast
I am getting following error when I am trying to use Convert.FromBase64String The input
I am getting following error while trying to connect to a sftp server:- ncftpput:
I am getting the following error trying to connect to a local DB2 instance
I am getting following error and I can't resolve it. <%@ Page Language=VB MasterPageFile
I am trying to create a new project but it getting following error .
Am getting following error message on calling WCF service: The formatter threw an exception
I am Getting following error on exporting the video using [exportSession exportAsynchronouslyWithCompletionHandler:^ Error: -[TiBlob

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.