Displaying 1 result from an estimated 1 matches for "showblogpost".
Did you mean:
showblogposts
2006 Jul 17
2
Trouble with has_one
...e_path
end
The controller targets I have used:
-----------------------------------
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 =>...