New Feature: Custom Model Names

Posted by jgehtland Fri, 02 Mar 2007 10:55:01 GMT

You asked for it (repeatedly) now you have it. Streamlined Edge now contains a syntax for overriding the default, reflective way a controller determines the model it is managing. For example, lets say you have a controller called:

EvaluationsController

that needs to control a model called

Eval
.

Your controller now can look like this:

class EvaluationsController < ApplicationController
   layout 'streamlined'
   acts_as_streamlined

   streamlined_model 'Eval'
end

Likewise, you can pass the class itself, instead of the class name. Either will work.

Posted in  | no comments | 1 trackback

Trackbacks: 1

Use the following link to trackback from your own site: http://streamlinedframework.org/articles/trackback/79

  1. From akkfakkt
    akkfakkt
    akkfakkt

Comments: 0

Leave a response | RSS feed for this post

Leave a response

Toggle website and email fields