Here’s a quick one.
Recently when doing some Rails work, I was using FormHelper to add a text area to an erb and couldn’t seem to get the size param to work. The Rails API docs clearly mention the use of the ‘:size’ param or the ‘:rows’ and ‘:columns’ params being acceptable.
For what it’s worth, neither seem to render in Firefox 3/4 or Safari. If you’re having the same problem, add a style to your text area to control the size, and you should be in business…
<%=form_builder.text_area(:attribute, {:class=>"aSizedTextArea"})%>
In your css file:
.aSizedTextArea { overflow-y: scroll; height: 100px; }
Hi there! If you will need to localize a Rail app into many languages, you can use an online localization tool and POEditor can be a good option to try, with a neat user interface. The tool doesn’t support .yaml formats for now, but you can convert them to po formats with the help of a free online tool http://yml2po.com/. It worked for me, maybe it can help you too.