Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7808593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:10:50+00:00 2026-06-02T03:10:50+00:00

Can you help me solve this problem? I’ve not managed to find any documentation

  • 0

Can you help me solve this problem? I’ve not managed to find any documentation on this, no doubt because it’s such a simple thing that no one’s thought to write it down!

I’m debugging some oauth functionality in a Rails app, and needing to regularly refer to the access token, which I’m rendering as text to_yaml.

render :text => request.env["omniauth.auth"].to_yaml

Is there a quick way to format the response? I currently have one long array displayed in my browser, which makes reading very challenging!

Can I get each item to display on a separate line, ideally nested under parent items?

For example, currently I have this: --- provider: twitter uid: '#####' info: nickname: username name: User Name and I want this:

--- 
provider: twitter 
uid: '#####' 
info: 
    nickname: username 
    name: User Name

I’m sure I’m overlooking something very obvious. Appreciate if someone can point it out to me!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:10:51+00:00Added an answer on June 2, 2026 at 3:10 am

    Use the magic pre tag:

    <pre><%= @foo.to_yaml %></pre>
    

    EDIT: Better fit for your example:

    render :text => "<pre>#{request.env["omniauth.auth"].to_yaml}</pre>" # quick and dirty
    

    If you use this a lot, refactor it into a helper method somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

---edit--- Is there any additional information I can give to help solve this problem?
Can anybody help me to solve this problem. I am working on iphone development.
Can any one please help me solve this. I am resizing some flash object/embed
perhaps you can help me to solve this problem. I want to display a
I would appreciate if there is someone who can help me solve this problem,
can you help me to solve this problem. im using PHP and MySQL. i
echo <p id='xlday'>'$_POST['day']'</p>; Hi can anyone help me solve this problem, should be a
http://jsfiddle.net/YaMhn/8/ ^^^^Take a look and see if you can help solve this Ok so
can anybody help me solve this : i got $filename= index 198.php; i use
Can somebody help me to solve the problem, that my collapsible FieldSet won't remove

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.