Ruby on Rails: difference between text_area and text_area_tag helpers? -


in ruby on rails: difference between text_area , text_area_tag helpers?

more importantly, know which 1 more suited long html text input (specifically in case, blog posts) ??

difference if use form_for, pass activerecord object , pass, let's say, f block, more convenient use example

<%= f.text_area :body %> 

because sets proper id, name , value automatically. there's no difference between these helpers in handling long html text inputs, if want use activerecord object form, should use text_area because, said, it's more convenient.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -