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 86553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:15:51+00:00 2026-05-10T22:15:51+00:00

In the admin section of a website i am building i would like to

  • 0

In the admin section of a website i am building i would like to put together a dashboard page, or ‘quick look’ type page where the most recent changes/additions/etc in several different areas can be viewed.

I was thinking the best way to do this would be to use partials and have each partial contain the markup for the data i need to display.

My question is, is this the best approach? and if so, how do i separate the logic and presentation of these partials? For instance how do i put the logic in the dashboard controller, but keep the presentation in the partial rhtml?

  • 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. 2026-05-10T22:15:51+00:00Added an answer on May 10, 2026 at 10:15 pm

    Partials are definitely the way to go, especially when you can pass in arbitrary data into them to make them do stuff. To answer your logic separation issue specifically, you would use:

    <%= render :partial => 'name_of_partial', :locals => { :some_var => @data_from_model } %> 

    Then, inside your partial, you’d have access to @data_from_model via the some_var variable.

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer This is the method I use: http://servername/site/_vti_bin/owssvr.dll?Cmd=Display&List=YOURUNIQUELISTID&XMLDATA=TRUE Works like a… May 11, 2026 at 11:33 am
  • added an answer You need to be very careful with this. There are… May 11, 2026 at 11:33 am
  • added an answer Try this: (?:START|BEGIN)(?:[^)]+|\)[^)])+\)\) To explain it: (?:START|BEGIN)   Start with either START… May 11, 2026 at 11:33 am

Related Questions

In the admin section of a website i am building i would like to
In the admin interface and newforms there is the brilliant helper of being able
This is easy for non-inlines. Just override the following in the your admin.py AdminOptions:
In the transition to newforms admin I'm having difficulty figuring out how specify core=False
Let's say that I have a record in the database and that both admin
At the moment I am working on a project admin application in C# 3.5
In the How Can I Expose Only a Fragment of IList<> question one of
In the course of your software development lifecycle, what essential design artifacts do you
In the case of languages that support single decision and action without brackets, such
In the latest version of WordPress, it gives you the opportunity to view a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.