Thriving K.
2009-Jul-13 09:40 UTC
How to add default value to text_field_with_auto_complete
I can''t find the way in rails api of how to add default value in text_field_with_auto_complete. Anyone know please teach me. Thank you. -- Posted via http://www.ruby-forum.com/.
Felix Schäfer
2009-Jul-13 09:54 UTC
Re: How to add default value to text_field_with_auto_complete
Am 13.07.2009 um 11:40 schrieb Thriving K.:> I can''t find the way in rails api of how to add default value in > text_field_with_auto_complete. Anyone know please teach me.I come up with this after 20s of googling: text_field_with_auto_complete foo, bar, :tag_options => { :value => "some default text" } Doc for text_field_with_auto_complete is here http://api.rubyonrails.org/classes/ActionView/Helpers/JavaScriptMacrosHelper.html#M000579 , the tag_options hash can hold the same stuff as the options hash in text_field_tag http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#M002016 . Felix
Thriving K.
2009-Jul-13 10:44 UTC
Re: How to add default value to text_field_with_auto_complete
Thank you a lot, i will try harder next time -- Posted via http://www.ruby-forum.com/.