ruby on rails - How to show my profile page using devise? -


i have devise model default fields email , password, , few more manually added full name, age, etc... i'd have page shows profile details i'm not seeing how can this.

somewhere in application.html view :

  • <%= link_to "profile", current_account%>
  • any appreciated

    controller

    class yourscontroller < applicationcontroller  def profile    @account = current_account  end end 

    route

    get "myprofile" => "yours#profile", :as => :myprofile 

    view /yours/profile.html.erb

    <%= @account.email %> <%= @account.etc %> 

    link current profile

    <%= link_to "my profile", myprofile_path %> 

    Comments

    Popular posts from this blog

    c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

    javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

    xcode - Swift Playground - Files are not readable -