No commit activity in last 3 years
No release in over 3 years
A SimpleForm input field for bank account numbers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 4.0.0
>= 0
>= 0

Runtime

~> 1.0
 Project Readme

SimpleForm::BankAccountNumber

Build Status Dependency Status Gem Version

A SimpleForm input field for bank account numbers.

Usage

Just create a new input field with :bank_account_number as its type. Note that you need to explicitly set the country and value options, like this:

f.input_field :account_number, as: :bank_account_number, country: user.country, value: user.account_number

  • the country is the ISO 3166-1 alpha-2 representation
  • the value can't be inferred automatically unfortunately so you have to set it explicitly

Also note that you'll get multiple values for each number part upon form submission. You probably want to concatenate them into one single number for your backend with something along these lines:

params[:bank_deposit][:account_number] = params[:bank_deposit][:account_number].join

License

MIT