I am using Ruby on Rails and would like to know how to take an array and print it on multiple lines.
My code I am using right now is in "application_helper.rb":
flash.now[:error] = resource.errors.full_messages.join(", ")
I am attempting to display my devise errors like shown in this link. Right now it prints out:
Email can't be blank, Password can't be blank, Username can't be blank
I want to display it like this:
Email can't be blank
Password can't be blank
Username can't be blank
What can I do to the line in the "application_helper.rb" file?