Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- @draft = Draft.create(draft_params)
- if @draft.save
- respond_to do |format|
- format.html { redirect_to root_url, notice: "Draft was successfully saved" }
- format.js
- end
- else
- render action: 'new'
- end
- end
- alert('hello')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement