R
Rajat Garg
[Note: parts of this message were removed to make it a legal post.]
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")%>
</form>
Then,* in controller - *
def shared
_flt = params[:fltAvailable]
if !_flt.blank?
@flt = SharedLocalFlight.new(_flt)
@flt.save
end
@fltSharedList = SharedLocalFlight.findall)
end
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
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")%>
</form>
Then,* in controller - *
def shared
_flt = params[:fltAvailable]
if !_flt.blank?
@flt = SharedLocalFlight.new(_flt)
@flt.save
end
@fltSharedList = SharedLocalFlight.findall)
end
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