I''m hoping there''s an easy way to do this. I''m trying to read options from a database, and insert them into form tags. So for example, In the Database Table: options size: 300 type: text_field maxsize: 300 and I want to create a text_field form tag, with all the appropriate options, is there an easy way to do this, other than having the code output the HTML directly? I know I could just have the view put out; but I want to use the Ruby Form helpers. <%= text_field %> Basically, I want to use database info, and input it into Ruby code to be interpreted by ruby... i think :P Hope that made sense, thanks in advance -- Randal Signature Randal Santia Randal Santia 2 3 2005-12-15T19:39:00Z 2005-12-15T19:39:00Z 1 36 209 1 1 244 11.6408 false false false MicrosoftInternetExplorer4 w:LatentStyles> Randal Santia B2B Logic.net Website: http://www.b2blogic.net Email: randal-UNWnRcPzgprk1uMJSBkQmQ@public.gmane.org Phone: 905-829-9777 Toll Free: 888-945-5576 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Randal Santia wrote:> _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails"where do I put my question text?" -- Posted via http://www.ruby-forum.com/.
Oops!!! Lets try this again. I''m hoping there''s an easy way to do this. I''m trying to read options from a database, and insert them into form tags. So for example, In the Database Table: options size: 300 type: text_field maxsize: 300 and I want to create a text_field form tag, with all the appropriate options, is there an easy way to do this, other than having the code output the HTML directly? I know I could just have the view put out; but I want to use the Ruby Form helpers. <%= text_field %> Basically, I want to use database info, and input it into Ruby code to be interpreted by ruby... i think :P Hope that made sense, thanks in advance Randal Signature Randal Santia Randal Santia 2 3 2005-12-15T19:39:00Z 2005-12-15T19:39:00Z 1 36 209 1 1 244 11.6408 false false false MicrosoftInternetExplorer4 w:LatentStyles> Randal Santia B2B Logic.net Website: http://www.b2blogic.net Email: randal-UNWnRcPzgprk1uMJSBkQmQ@public.gmane.org Phone: 905-829-9777 Toll Free: 888-945-5576 Bryan Duxbury wrote: Randal Santia wrote: _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails "where do I put my question text?" _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails