About Ruby on Rails device User Profiles

Asked 2 years ago, Updated 2 years ago, 90 views

I'm using Ruby on Rails to try to develop a web app.

We implemented the device and set up our own columns (name, age, self-introduction, etc.).

What's troubling you right now is

Create My Page to display age, name, self-introduction, etc. and
Allow users to edit their profiles themselves.

I searched various sites, but there were many articles about routing after editing the profile, so I couldn't find the article about the previous step.
While searching further, I fell in love with the device controller...

Maybe you're asking a simple question, but it's a huge challenge for me.
Please tell me who it is!

If necessary, I will prepare all the source code.

ruby-on-rails ruby devise

2022-09-30 18:01

1 Answers

You need a view and controller to edit the User model.

The quickest thing is to create another rails app and then

 rails gscaffold user name somehow or other

and copy the generated file.Be careful not to copy the model and migration at this time.


2022-09-30 18:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.