Displaying 1 result from an estimated 1 matches for "format_my_phone_number".
2006 Oct 20
7
MVC and modules. Views telling models to behave
..., fax_number etc to provide me with some nice formatting.
Presumably I could also pass some parameters somewhere (not quite sure yet)
so that I could tell the PhoneNumberFormat what kind of format I want.
Then my building objects, when I call
<%= @building.phone_number -%>
instead of
<%= format_my_phone_number( @building.phone_number ) -%>
to get the format that I want
Is this a nasty abuse of MVC?
Thanx for any pointers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to t...