Skip to content

appdev-projects/qr-code-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
github-actions
May 21, 2025
0087914 · May 21, 2025

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Rails

In this project, we'll generate QR codes for our users and display them in the browser.

Target

Here is a target to work towards.

Anatomy of a URL

The full anatomy of a URL (parameters are also known as query strings):

The anatomy of a URL from MDN

Read more at MDN.

Tasks

Implement the following four URLs:

  • /text

    This URL should accept a query string of the form:

    ?content=Your text goes here
    

    The value provided under content key of the query string should be encoded in a QR code as plain text.

  • /url

    This URL should accept a query string of the form:

    ?page=https://www.wikipedia.org
    

    The value provided under the page key of the query string should be encoded in a QR code as a URL (which is just plain text that begins with http or https).

  • /wifi

    This URL should accept a query string of the form:

    ?ssid=Your network name&pw=secret password
    

    The values provided under the ssid and pw keys should be encoded in a QR code as a wifi network. For example:

    WIFI:T:WPA;S:Your network name;P:secret password;;
    
  • /sms

    This URL should accept a query string of the form:

    ?phone=9876543210&message=Hi Alice! It's me,
    

    The values provided under the phone and message keys should be encoded in a QR code as a text message: For example:

    SMSTO:9876543210:Hi Alice! It's me, 
    

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published