|
Layouts and content_for
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.
|
|
|
All About Layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.
|
|
|
|
|
Using with_scope
Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic!
|
|
|
Move Find into Model
Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.
|
|
|
Find Through Association
No need to pass foreign keys in find conditions, just do the find through a has_many association.
|
|
|
Dynamic find_by Methods
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods
|
|
|
|
|
|
Taking Advantage of ColdFusion MX 7 Event Gateways
In this Macrochat, Macromedia Architect and Technical Lead for ColdFusion, Tom Jordahl discusses ColdFusion event gateways. ColdFusion has long been the easiest way to create applications that respond to web requests from web browsers. ColdFusion MX 7 opens up a whole new world of applications that c...
|
|