I would like to display data in Columns rather than Rows in my web page.
What is the most efficient way to do this using Ruby on Rails?
Many thanks for your help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Simple solution would be to ‘rotate’ the information, using an array. Like this (pseudo) code (cannot check if atm)
Controller code:
In your View you’d need something like this:
There are of course better solution, but this seems the most simple/general to me. To rotate some data from some Model.
Like others said with more information we can help you probably much better!