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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:24:17+00:00 2026-05-22T18:24:17+00:00

My rails 3 app only needs a single user login per account (e.g., no

  • 0

My rails 3 app only needs a single user login per account (e.g., no roles). I’m using Devise and am very happy with it.

But my users needs to be able to share a few of the screens (status reports mostly) with other managers who do not need or want login accounts…

I was thinking of creating and storing a guid for each such ‘external’ report (unique for each account+report) so a link such as

http://myapp.mydomain.com/pagename?token=GUID_GOES_HERE

would access that page (but ONLY that page)

Questions:

a) is there a way to allow the logged-in account user to access a page but ALSO allow a guid to bypass the devise authentication

b) is there a better way for account Users (say, a regional manager) to share certain report screens with non-logged-in users (say, store managers)?

  • 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-22T18:24:18+00:00Added an answer on May 22, 2026 at 6:24 pm

    If those pages do not require login then they aren’t they truly public pages? Sounds to me like you should create a new controller that does not require login but requires the token. the route could be something like,


    get 'public_reports/:token' => 'public_reports#view'

    And the controller action would find that report based off the token and render the appropriate view..

    class PublicReport < ApplicationController
        skip_before_filter :authenticate_user!, :only => [:view]
    
      def view
        @report = Report.find_by_token(params[:token])
        if @report
          #render view...
        else
          #render report_missing view
        end
      end
    
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a gallery in my rails app that needs to only allow certain
I am currently setting up a master-slave app using Ruby on Rails that needs
I'm running a Rails app and using prototype. The script breaks in IE, but
I have a simple Rails 3 blog app that needs an admin user so
Our rails app is designed as a single code base linking to multiple client
I have a rails app that has picked up a bit of traction, but
I'm writing a reports dashboard for a rails app. The dashboard is for user
I'm not only new to Rails, but to development in general, so I apologize
I have started developing a new Rails app on my server using RVM, Rails
I'm working on my first Rails app. It needs to store some information about

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.