New Feature: Custom Model Names

Posted by jgehtland Fri, 02 Mar 2007 15: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

New syntax for hiding relationships

Posted by jgehtland Sat, 21 Oct 2006 13:37:49 GMT

Just checked into head, will be part of 0.0.6 release this week, if you want to hide a relationship from the views, you can use:

relationship :relationship_name, :off

Synonyms you can use for the :off value:

:off|:none|:false|false

This also fixes Ticket #66.

Posted in ,  | Tags , , ,  | 4 comments | no trackbacks

Older Posts

Older Posts: 1 2