Displaying 2 results from an estimated 2 matches for "incidentid".
2006 Aug 08
3
params object nil in controller action
...cidentSearch].nil? or session[:incidentSearch].empty?
# if no search criteria found in session
logger.debug("if params.nil?=#{params.nil?}")
logger.debug("NOT FOUND :incidentSearch")
if (params[:routeNum].nil? or params[:routeNum].empty?) and
(params[:incidentId].nil? or params[:incidentId].empty?) and
(params[:startDateTime].nil? or params[:startDateTime].empty?) and
(params[:endDateTime].nil? or params[:endDateTime].empty?)
flash[:warning] = "Don''t try stupid things....Enter some search
criteria."
r...
2006 Aug 01
1
Transactions within the Controller
Hi,
I have 2 models, how can I save both of them in one transaction?
I want to do something like this:
begin transaction
project.save
person.save
end transaction
The only examples I''ve seen is with saving 2 instances of the same model in a transaction.
thanks
scott.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: