Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def destroy
- if params[:ids]
- @models = Model.find(:all, :conditions => { :id => params[:ids] })
- @models.each { |m| m.destroy }
- else
- @model = Tracker.find(params[:id])
- @model.destroy
- end
- end
Add Comment
Please, Sign In to add comment