Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update
- @block = Block.find(params[:id])
- if @block.update_attributes(params[:block])
- save_the_photo(@block, params[:data])
- end
- @block.save
- redirect_to :action => 'index'
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement