Skip to content

Repository files navigation

numbers = [1, 3, 3, 7, 3, 7]

def mode(numbers) return numbers.uniq.max_by{ |i| numbers.count( i ) } end

Wallet

On localhost:XXXX/cc_test.png (public/cc_test.png) you'll find a picture which describes a basic wallet. This wallet consists in adding N Credit card numbers to a list. The actions are:

  • Click on add a new card, it'll show 3 empty fields (to enter the Credit card number,CVV and expiration date) and a save button. The new number should be stored when the user click on the "Save" button.
  • Each credit card on the list will have an X, in order to remove an item when it's needed.
  • It's not possible to edit the items.

Notes

Please,The wallet look and feel should be based on cc_test.png. This is an empty Rails 4.2.7 project.

Installation

  1. Clone this repository to your computer.
  2. Run bundle install.

Experimenting

An interactive ruby console can be opened in a terminal by running:

bundle exec pry

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages