Re: [Rails] Iban gem integration

13 views
Skip to first unread message

Colin Law

unread,
Mar 25, 2019, 4:43:21 AM3/25/19
to Ruby on Rails: Talk
On Mon, 25 Mar 2019 at 07:12, Sapna Mishra <sapna....@gmail.com> wrote:
>
> I have installed IBAN gem to my application.
>
> gem 'IBAN'
>

Did you run bundle install after that?

Colin

>
> I have created one validator class for this.
>
> require 'IBAN'
> class IbanValidator < ActiveModel::Validator
> def self.validate(iban_no)
> return IBAN.valid?(iban_no)
> end
> end
>
> but it gives me this error
>
> cannot load such file -- IBAN
>
>
> when I call the method without require I get below error
>
> uninitialized constant IbanValidator::IBAN
>
>
> I am not sure why I am not able to access IBAN to my application.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ec34d48a-ecd4-4be5-b8f9-481394dbc093%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Sapna Mishra

unread,
Mar 25, 2019, 4:46:07 AM3/25/19
to Ruby on Rails: Talk
Yes I did. I have find the repo for this in github. https://github.com/max-power/iban/
in that they have mentioned that this repo is moved to https://github.com/max-power/bank so I have used that now and it is working. Thanks

botp

unread,
Mar 25, 2019, 5:47:10 AM3/25/19
to rubyonra...@googlegroups.com

On Mon, Mar 25, 2019 at 4:46 PM Sapna Mishra <sapna....@gmail.com> wrote:
Yes I did. I have find the repo for this in github. https://github.com/max-power/iban/
in that they have mentioned that this repo is moved to https://github.com/max-power/bank so I have used that now and it is working. Thanks


imho, the origl repo should be emptied and, if the link/repo should stay for whatever reason, should provide a redirect instead.

--
many thanks and many regards,
--botp

Reply all
Reply to author
Forward
0 new messages