[Rails] Re: I want to create text box but in run time

2008-12-16 Thread Ahmed Abdelsalam
How about creating a hidden DIV that include the text box, and make it appears programatically. Regards,... Ahmed Abdelsalam hyuan wrote: text_field_tag See: http://api.rubyonrails.com/classes/ActionView/Helpers/FormTagHelper.html On Dec 15, 12:52 pm, mahmoud_cs

[Rails] Re: I want to create text box but in run time

2008-12-15 Thread mahmoud_cs
On Dec 15, 2:31 am, Joshua Abbott rails-mailing-l...@andreas-s.net wrote: There are two problems with that. One, all that's going to do is output the text text_field not call the method. Second, text_field requires two arguments object_name and method. So anyway, use the send method to

[Rails] Re: I want to create text box but in run time

2008-12-14 Thread Joshua Abbott
There are two problems with that. One, all that's going to do is output the text text_field not call the method. Second, text_field requires two arguments object_name and method. So anyway, use the send method to call the text_field method in the view and pass in whatever args you need. #