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

  • Home
  • SEARCH
  • 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 6668593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:03:29+00:00 2026-05-26T03:03:29+00:00

Here is a Ruby ActiveRecord class: class User < ActiveRecord::Base has_many :user_tokens devise :trackable,

  • 0

Here is a Ruby ActiveRecord class:

class User < ActiveRecord::Base
  has_many :user_tokens
  devise :trackable, :confirmable

I have two Ruby terminology questions about it:

  1. How do you call :confirmable, is it an “aspect” of class User?
  2. In the code above, how do you call the devise word? Is it a “method call”?

PS: I am quite new to Ruby. I have searched online, and read many Ruby OOP tutorials, but none gave those two things a proper name.

  • 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-26T03:03:30+00:00Added an answer on May 26, 2026 at 3:03 am

    devise is a method call, it could be either a class or instance method, I’m not sure. I think here it is best to refer to :confirmable as an argument which is passed to the devise method. You’d best refer to the devise docs for a better understanding of what its role is.

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

Sidebar

Related Questions

What I have now: class User < ActiveRecord::Base has_many :people end ... and... class
This is what my Plan.rb looks like: class Plan < ActiveRecord::Base has_many :users has_friendly_id
Here is the trivial inheritance (STI) setup: class Parent < ActiveRecord::Base end class Daughter
I have been looking at ways to program a UI in ruby here, on
I have a complex form in Ruby on Rails 2.3.5, here's the structure for
I am creating a site in Ruby on Rails, I have two models a
In a Ruby on Rails 3 application, I have invitations. Here is the model:
I started using NoSQL with Ruby. Here's the code I have require 'mongo' require
Here's some Ruby code: puts %x{ pstree #{$$} } # never forks puts %x{
Here is my script #!/usr/bin/env ruby if __FILE__ == $0 `cd ..` puts `ls`

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.