Displaying 1 result from an estimated 1 matches for "running_tim".
Did you mean:
running_tid
2006 Jan 19
3
template/variable confusion
...;
I was hoping that I would be able to set variables such as this globally within the application.rb controller.
Or, am I just going about this in completely the wrong way :) ?
I am also having trouble writing (what I think are called) overload methods within the model. I have a TIME column named running_time in my Film model and I only ever want it to look like this e.g.: ''5:32'' rather than the fully rendered datetime that is returned by default. So I define a method in the model to override the default:
def running_time
# strftime code here
end
but whenever I try and referenc...