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

The Archive Base Latest Questions

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

I am creating a Rails App (I’d like to know how to do this

  • 0

I am creating a Rails App (I’d like to know how to do this in Rails 3.1 and 3.0) on Mac OSX 10.6.

I am using a PagesController to handle mostly static pages but would like to include a signup form on the home page and a login option in a persistent, static top bar on each page generated from my PagesController (home, about, contact, help, etc.).

I am having a little bit of trouble getting forms to work when they are outside of a given controller -> view. For example, I have a SessionsController and then the view (new.html.erb) where I have a form that when submitted creates a new session for login purposes. However, I am looking to implement this same form/functionality outside of the SessionsController and on views belonging to the PagesController (ie home.html.erb or about.html.erb). I’d like to do the same with the signup functionality: I’d like to have a signup form at home.html.erb and not have to send people to the “new” page in the UsersController. It seems like a simple redirect action when the form is submitted but I am having trouble figuring this out. Could someone point me in the right direction?

Thank you!

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

    One option would be have the signup form (.erb) file as a partial and include it in both Users and Pages controllers.

    By that way your registration form is portable to any controller. And when the form is posted after saving you could redirect the user to where the request came from.

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

Sidebar

Related Questions

I'm creating a Rails app and would like to know which of these is
I am creating a rails app and have used this code in one of
I am creating a small rails app for personal use and would like to
I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I
I'm creating my first rails app, and using the standard prototype library for some
For the first time I'm creating a quite complex Rails app. I'd like to
in my rails app I'm creating an array like so: @messages.each do |message| @list
This is my first rails app, one I'm creating for the sole purpose of
I'm creating a Rails app using Devise for user management (Rails 3.0.10, Devise 1.4.2).
I am creating a rails 3 app on Heroku and it's using postgres as

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.