Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create
- binding.pry
- @clip = current_user.clips.build(clip_params)
- respond_to do |format|
- if @clip.save
- format.html { redirect_to @clip, notice: 'Clip was successfully created.' }
- format.json { render action: 'show', status: :created, location: @clip }
- else
- format.html { render action: 'new' }
- format.json { render json: @clip.errors, status: :unprocessable_entity }
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement