Displaying 2 results from an estimated 2 matches for "create_path".
2006 May 31
7
Rails, Transactions, and statements
...is what I
started out with:
1 def add_album
2 Album.transaction do
3 @page = Page.find(params[:id])
4 @album = Album.new(params[:album]) #creates a new Album in the
database
5
6 linking = Linking.new(:page_id => params[:id])
7 linking.linkable = @album
8
9 create_path(@album.id) #makes a directory using the album id
10
11 linking.save! #sends statement AND commits?
12 @album.save!
13
14 redirect_to :action => ''index''
15 end
16 end
The problem with this is that @album''s id has not yet been populated.
Moving the...
2017 Feb 18
11
[PATCH 0/8] Miscellaneous cleanups to Windows registry code.
A very miscellaneous set of cleanups to how we handle the Windows
registry in virt-v2v, firstboot, and inspection code. This should all
be straightforward non-controversial refactoring. Some highlights:
- Add a new mllib Registry module containing various utility
functions that are currently scattered all around.
- Only compute the software/system hive paths once during inspection,
and