El Monday 23 March 2009 20:50:03 harv escribió:
> Can anyone tell me how to override what appears to be the default
> behavior of truncating text in lists after 50 characters?
>
You can override active_scaffold_column_text in your controller helper, or ut
in application helper to override in all controllers. Currently is:
def active_scaffold_column_text(column, record)
truncate(clean_column_value(record.send(column.name)), :length => 50)
end
You can remove truncate method, or change limit.
If you want override only for a column, use a field override:
http://wiki.github.com/activescaffold/active_scaffold/field-overrides
--
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---