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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:29:27+00:00 2026-06-12T05:29:27+00:00

My Ruby on Rails web application has standard authentication. As the user logs in

  • 0

My Ruby on Rails web application has standard authentication. As the user logs in from the index page, I decided to model the index page as the “new” action of the “user_sessions” resource.

I decided to make the login form hidden using css, so that it could be made visible in a javascript launched modal dialog box.

The problem is now what do I do when the user has javascript turned off? Where do I send them to login?

I considered hiding the login form from javascript instead, so if javascript was turned off, the form would remain visible. Problem with this is that when the page is loading, the form will briefly appear before vanishing.

  • 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-06-12T05:29:28+00:00Added an answer on June 12, 2026 at 5:29 am

    I wouldn’t go that way. Build a normal index page, and link to the login form. Then with ujs, set the link as remote (so it’s managed asynchronously) and register its handler to show the resulting form in a popup.

    (in the view)
    link_to new_user_session_path, :remote => true, :class => "possibly-modal-dialog"
    
    (in some js or coffee file)
    $(document).on "click", "a.possibly-modal-dialog", (event) ->
      event.preventDefault
      # to whatever needed to show the dialog.
    

    This way, a user without javascript will see the normal link, and a user with javascript will just trigger the modal dialog.

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

Sidebar

Related Questions

Background: I'm writing a 'standard' (nothing special) web application in Ruby (not Rails) and
I am new to Ruby On Rails & developing a web application with Facebook
I want my web application, which is built with Ruby on Rails, to communicate
I'm using Ruby on Rails to develop a web application. I have a wiki
I'm contemplating writing a web application with Rails. Each request made by the user
We're working on some Ruby on Rails web application which is currently in English
I'm using application.html.erb in the views/layouts folder of my Ruby on Rails web app
First I'm quite new to ruby and rails... I have a little application working
I am working on a Ruby on Rails 3 web application and am not
I am working on a Ruby on Rails 3 web application. I have a

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.