Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include multipart

  • Loading branch information...
commit 2f72c3032ac3ea064493a0e0adfedb9d54cd1d59 1 parent 4db450c
@jordanbyron jordanbyron authored
View
2  app/controllers/admin/puzzles_controller.rb
@@ -9,7 +9,7 @@ def new
@puzzle = Puzzle.new
end
- def create
+ def create
@puzzle = Puzzle.new(params[:puzzle])
if @puzzle.save
View
2  app/views/admin/puzzles/new.html.haml
@@ -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}
Please sign in to comment.
Something went wrong with that request. Please try again.