You really, really, don't want to do this. Fetching data directly from the views is bad, and storing data is even worse. Do all the database stuff in your controller. That way the view becomes simpler, and your code becomes testable.
Regards, /Daniel On 10/3/07, Dhaval Parikh <[EMAIL PROTECTED]> wrote: > Hello frnds > > Is there any method to write the insert query in the .rhtml file (eg: > -list.rhtml). If so please do let me know. > > Thanks > > Dhaval Parikh > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Railsi18n-discussion mailing list > Railsi18n-discussion@rubyforge.org > http://rubyforge.org/mailman/listinfo/railsi18n-discussion > _______________________________________________ Railsi18n-discussion mailing list Railsi18n-discussion@rubyforge.org http://rubyforge.org/mailman/listinfo/railsi18n-discussion