Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Creating similar but non-identical pages?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Isak  
View profile  
 More options Jul 1 2010, 4:59 am
From: Isak <isak.han...@gmail.com>
Date: Thu, 1 Jul 2010 01:59:55 -0700 (PDT)
Local: Thurs, Jul 1 2010 4:59 am
Subject: Creating similar but non-identical pages?

Our app has two user models, User and Admin, each with their own non-
overlapping UI.

Users have a reasonably simple crud page, let's call it "foods", and
we want to add "foods template" functionality to the admin ui.
Basically reusing the food model, but with a blank user_id FK, as
default data for new users.

What is the best way to go about this and not duplicate model,
controllers and views..?

We've considered extracting common controller code into a module and
mixing that into two separate controllers, but would still have to
duplicate the views for that -- or at least sprinkle them with
permission checks for every link.

Using a single controller/view sprinkled with "mode" checks doesn't
feel right either, but could work with some work on our authorization
code.

Any other suggestions?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »