Ask A Question

Notifications

You’re not receiving notifications from this thread.

Handling First & Last Name with the name_of_person gem Discussion

Great finding Chris πŸ‘

Let's see what DHH think about https://github.com/basecamp/name_of_person/issues/2 😁

Reply

Thanks Chris for this episode. Let's get rid of all those full_name helpers I have everywhere :)

Maxime, watching the episode and based in Japan the same thought came to my mind (about first_name and last_name orders based on the country). Thank you for creating this issue, I hope this could be accepted towards a PR.

Reply

Thanks Chris for introducing me to this great gem. I'll put it in the app I'm developing today.

Reply

BTW How to show the error messages for the name field if the first_name or last_name are the columns being validated. In your example your form contains the devise_error_messages! method but I am just submitting to the User model through a plain old User Controller.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.