OK I'm sure I'm missing something here, but please forgive me I'm new to Rails.
Is there some way in Rails to display all the fields for an object rather than specifying each?
In my show.html template rather than going
<p>Name: <%=h @user.full_name %></p>
<p>Email: <%=h @user.email %></p>
I just want a oneliner to do this without having to type out each of the 15 or so fields I have. Its an admin page so its fine if all the fields are shown (id, created_at, etc.) If this was PHP it would take me about 5 secs using foreach, but I've googled (on the wrong things obviously) for an hour with no luck.
Thanks!