Displaying 2 results from an estimated 2 matches for "creatematerial".
2006 Feb 20
4
Obtaining the ID of a newly saved model object
Hi,
I''m struggling with this and I''m not sure if it is obvious or dumb (or both).
I have a basic create method like so:
def creatematerial
@material = Material.new(params[:material])
if @material.save
flash[:notice] = "Material successfully created."
end
Ok so far, but now I want to retrieve that object that was just saved so that it can be used in the view. Something like...
@newmaterial = Material.find(@mater...
2012 May 25
0
Wine release 1.5.5
...d3drm: Implement IDirect3DRMMesh_GetGroupCount.
d3drm: Implement IDirect3DRMMesh_GetGroup.
d3drm: Implement IDirect3DRMMesh_SetVertices.
d3drm: Implement IDirect3DRMMesh_GetVertices.
d3drm: Set vertices data of the created mesh.
d3drm: Fix method name Material to CreateMaterial.
d3drm: Implement IDirect3DRMMaterial2 interface.
d3drm: Implement IDirect3DRMXImpl_CreateMaterial.
d3drm: Material object is taken into account when a mesh references it.
d3drm: Add some tests for mesh default material and texture.
d3drm: Add stub interface for IDirec...