On Lunes, 16 de enero de 2012 22:53:51 Adam Spiers escribió: > On Mon, Jan 16, 2012 at 9:45 AM, Sergio Cambra <[email protected]> wrote: > > On Sábado, 14 de enero de 2012 04:21:46 Adam Spiers escribió: > >> Two of my ActiveScaffold-controlled models have fields which I have > >> configured to be edited via <textarea>, and they are intended to > >> receive > >> Markdown-formatted text, so I wish to provide a link to > >> http://daringfireball.net/projects/markdown/syntax at the top or > >> bottom of the <textarea> in the #edit form. How can I do this with > >> ActiveScaffold? I couldn't find anything in the docs; maybe I missed > >> it. > >> > >> Thanks, > >> Adam > > > > You could set description, something like > > conf.columns[:markdown_column].description = '<a > > href="http://daringfireball.net/projects/markdown/syntax" > > target="_blank">markdown syntax</a>'.html_safe > > Thanks! That works ... but it also tries to insert the same > HTML into the <th> for that column in the #list action, which > causes serious HTML syntax / validation errors. Any ideas?
you can override render_column_heading -- 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.
