Displaying 1 result from an estimated 1 matches for "addressbookcontrol".
2007 Nov 13
2
File Uploding coding problems
...<b>Picture:</b><br />
<input type="file" name="person[picture]" />
</p>
<p><input type="submit" name="Save" /></p>
</form>
#################The controller:##########################
class AddressbookController < ApplicationController
def new
# not really needed since the template doesn''t rely on any data
end
def create
post = Post.save(@params["person"])
# Doesn''t this mean post is a File object?
# post.id is a bad idea in this case...
redirec...