Displaying 2 results from an estimated 2 matches for "railsguides".
2010 Jul 07
1
what is a session stored via the active_record_store option unique to?
Hi,
After a bunch of snooping in AWDWR and Railsguides I can''t reach a
good understanding to the following question: What is a session stored
via the active_record_store option unique to? In other words, how does
rails bind the user to their session under the active_record_store
option?
This concern has arisen in the following way...
...I ha...
2008 Oct 22
1
Re: Returning a record's ID before the record is made?!??
In their example,
def create
@product = Product.new(params[:product])
@details = Detail.new(params[:details])
Product.transaction do
@product.save!
@details.product = @product
@details.save!
redirect_to :action => :show, :id => @product
end
rescue ActiveRecord::RecordInvalid => e
@details.valid? # force checking of errors even if products failed
render :action