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

The Archive Base Latest Questions

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

I have the following relationship User –> has_many: Articles Article –> belongs_to: User I

  • 0

I have the following relationship

  • User –> has_many: Articles
  • Article –> belongs_to: User

I need to create a public (not restricted) page to Publish an Article (with Title & Description), in the same page I need to add the SignIn / SignUp form (with the possibility to switch bitween the SignIn and SignUp with ajax).

After click to the Publish “Button”, the behaviour is quite the same for SignIn and SignUp:

  • SignUp, the Article will be inserted as “Draft”, and we will send an email to inform
  • SignIn, the Article will be inserted as “Draft”, and we will send an email to complete the registration form

Which is the best approach?

Regards

  • 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-28T16:34:30+00:00Added an answer on May 28, 2026 at 4:34 pm

    See this thread:

    How to add callback after registration with Rails3 and Devise

    The key is, don’t look to Devise, use callbacks on your model(s) and Rails nested forms for sending the data.

    Also note, the authentication layer for Devise is Warden, which does have callbacks for sign in/out.

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

Sidebar

Related Questions

I have the following relationship: store.rb -> has_many :products product.rb -> belongs_to :store routes.rb
I have the following domains: User, Role, Company. User and Role has m:n relationship,
I need to create relationships for my entities, whereby I have the following scenario:
I have following two entities public class User { [Key] public int Id {
I have the following POCO's: [PetaPoco.TableName(Customer)] [PetaPoco.PrimaryKey(ID)] public class User { [Required(ErrorMessage = Please
I have the following two models: School and User, and a HABTM relationship between
In my application I have the following relationship: Document has_and_belongs_to_many Users User has_and_belongs_to_many Documents
I have a user model with a HABTM relationship to groups. I do not
I have model called User with a has_many relationship to UserFilter . UserFilter has
I've 2 model, User and Client with the following relationship. User has_many :clients Client

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.