Displaying 3 results from an estimated 3 matches for "ljredpath".
2006 Oct 27
5
Purpose of after_initialize in ActiveRecord?
All,
I have a quick question - is the purpose of implementing
after_initialize to allow custom attribute initialization for AR
descendants?
I have been overriding initialize whenever I require custom setup of my
model classes, like so:
def initialize(attributes = nil)
super
self.Status = ''G''
end
So I have a couple of questions:
1) Could I achieve the same
2006 Oct 20
7
MVC and modules. Views telling models to behave
I was thinking today, it would be nice if a view could tell a model how to
format it''s data for that particular view.
Kind of like, the view is bestowing instant, and temporary knowledge on the
model for the duration of the views run.
It seemed to me that this would be more objecty than say a helper that
formats a string
format_my_string( my_string )
Instead, in my view. Lets assume I
2006 Oct 17
0
UJS Rails Plugin Group
UJS has started to get a lot of attention recently and we''ve found
we''ve been getting tickets filed on trac that are more like support
requests/help rather than real bugs.
For that reason, we''ve set up a UJS4Rails Google Group. Feel free to
ask questions, suggest features and discuss how you are using the
plugin.
http://groups.google.com/group/ujs4rails