Permalink
Browse files

Include multipart

  • Loading branch information...
jordanbyron committed Feb 2, 2011
1 parent 4db450c commit 2f72c3032ac3ea064493a0e0adfedb9d54cd1d59
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/admin/puzzles_controller.rb
  2. +1 −1 app/views/admin/puzzles/new.html.haml
@@ -9,7 +9,7 @@ def new
@puzzle = Puzzle.new
end
- def create
+ def create
@puzzle = Puzzle.new(params[:puzzle])
if @puzzle.save
@@ -1,4 +1,4 @@
%h1 Admin > Puzzles > New
-- form_for @puzzle, :url => admin_puzzles_path do |f|
+- form_for @puzzle, :url => admin_puzzles_path, :multipart => true do |f|
= render :partial => "form", :locals => {:f => f}

0 comments on commit 2f72c30

Please sign in to comment.