search for: uploadheaderimag

Displaying 1 result from an estimated 1 matches for "uploadheaderimag".

Did you mean: uploadheaderimage
2006 Jul 17
2
Trouble with has_one
...--------------------- def uploadImage Post.find(params[:id]).images.create(params[:image]) @post = Post.find(params[:id]) flash[:notice] = "Image was successfully uploaded" redirect_to :action => ''showBlogPosts'', :id => @post.blog_id end def uploadHeaderImage Post.find(params[:id]).header.create(params[:header]) @post = Post.find(params[:id]) flash[:notice] = "Image was successfully uploaded" redirect_to :action => ''showBlogPosts'', :id => @post.blog_id end As you can see POST has two children, image...