This week I will be reading Redmine‘s text formatting code. I’ve worked on Redmine for a few years now but it’s text formatting is still a complex mystery to me. The text formatting code is used whenever a rich text area is used; that lets you enter bold, underline, internal Redmine links, etc. The Code …
Tag: code-reading
Daily Code Reading #30 – Formtastic basic inputs
Today I’ll be finishing up my code reading session of formtastic by looking at how it creates the input fields. The Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 …
Daily Code Reading #29 – Formtastic default_input_type
Today I’m looking into formtastic‘s SemanticFormBuilder#default_input_type. It’s used to guess what type of data is stored in a field so it can show the correct form element. The Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 …
Daily Code Reading #28 – Formtastic input
Today I’m tackling formtastic‘s SemanticFormBuilder#input which is used by just about every other part of formtastic to generate the form fields. The Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 …
Daily Code Reading #27 – Formtastic inputs
Yesterday I read through formtastic‘s SemanticFormBuilder#semantic_form_for. Today I’m reading through SemanticFormBuilder#inputs which formtastic uses to create a fieldset and automatically generate all of the form fields needed. The Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 …