Closed tarkzc closed 7 years ago
Did you re-run your migrations after updating the migration? What happens if you run rails db:migrate:reset
? Youl'll probably need to turn off/on your Rails server.
Yes I did, it doesn't work
Ah, I think it's because you're not actually using that configure_permitted_parameters
method you defined. You need to actually call it before the relevant controller actions. Take a look at this example in the Devise documentation, paying particular attention to what is included at the top of the ApplicationController
.
Got it. Thanks Adrian.
Nice. Close this one when you've solved the issue / if you run into any other problems relating to this issue post them here!
I added :firstname key to the devise user table.
I want username's :firstname to be shown every page. User's email is showing up but firstname doesn't show up.