From: Julian Leviston Date: 2008-04-11T13:50:28+09:00 Subject: Re: Saving form fields not working By the way, this question should be asked of the rails list, not the ruby one. Julian. Learn Ruby on Rails! Check out the FREE VIDS (for a limited time) VIDEO #3 out NOW! http://sensei.zenunit.com/ On 11/04/2008, at 2:38 PM, Rajat Garg wrote: > I have a form on a page *add_flight.rhtml -* > <%=form_tag({:controller=>"local_flights",:action=>"shared"}, > {:id=>"add_flight", :method=>"post"})%> > ..... > <%=submit_tag("Add your Flight Request")%> > > > Then,* in controller - * > def shared > _flt = params[:fltAvailable] > if !_flt.blank? > @flt = SharedLocalFlight.new(_flt) > @flt.save > end > @fltSharedList = SharedLocalFlight.find(:all) > end > >>> This seems to be getting called and then shared.rhtml gets rendered > > However, record doesn't get saved to table. There is no error msg in > development.log. > > Any ideas on what I am missing here? > > Please help. > > Thanks, > -- > Rajat Garg > > > Ph: 206-499-9495 > Add: 1314 Spring Street, #412 > Seattle, WA 98104 > Web: http://www.pilotoutlook.com > ----------------------------------------------------------------------------------------------------- > Flying is the second greatest thrill known to man. Landing is the > first!