https://github.com/sixarm/sixarm_ruby_intended_uri
SixArm.com » Ruby » Intended URI session store for typical Ruby On Rails
https://github.com/sixarm/sixarm_ruby_intended_uri
gem intended-uri rails ruby
Last synced: about 2 months ago
JSON representation
SixArm.com » Ruby » Intended URI session store for typical Ruby On Rails
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_intended_uri
- Owner: SixArm
- License: other
- Created: 2010-10-18T04:31:29.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:19:09.000Z (about 1 year ago)
- Last Synced: 2025-09-05T05:16:06.461Z (10 months ago)
- Topics: gem, intended-uri, rails, ruby
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 237 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
IntendedUri to manage a user's URI in a Rails session
* Doc:
* Gem:
* Repo:
## Introduction
Get and set the user's intended uri in the Rails session array.
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_intended_uri
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_intended_uri'
### Require
To require the gem in your code:
require 'sixarm_ruby_intended_uri'
## Example
require "sixarm_ruby_intended_uri"
class ApplicationController
include IntendedUri
def sign_in_success
redirect_to intended_uri || welcome_uri
end
def sign_in_failure
intended_uri=request.request_uri
redirect_to sign_in
end
...
end