undefined method `creditcards' for "156429":String
says that @account is a string containing "156429". (maybe the id of
the record)
Anyway, the error is most likely in your find, please post the code
that assigns @account
undefined method `creditcards' for "156429":String
says that @account is a string containing "156429". (maybe the id of
the record)
Anyway, the error is most likely in your find, please post the code
that assigns @account
That was it! I had @account = params[:id] instead of @account =
Account.find_by_id(params[:id]). Thanks for the help,