Guest User

Untitled

a guest
Jun 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. def index
  2. @notifications = Notification.find(:all, :conditions => {:user_id => @current_user.id}, :order => :rule)
  3.  
  4. end
  5.  
  6. # GET /notifications/1
  7. # GET /notifications/1.xml
  8. def show
  9. @notification = Notification.find(params[:id])
  10.  
  11. respond_to do |format|
  12. format.html # show.html.erb
  13. format.xml { render :xml => @notification }
  14. end
  15. end
  16.  
  17. # GET /notifications/new
  18. # GET /notifications/new.xml
  19. def new
  20. @structures = Structure.find(:all, :conditions => {:structure_type => "Building"})
  21.  
  22. respond_to do |format|
  23. format.html # new.html.erb
  24. format.xml { render :xml => @notification }
  25. end
  26. end
  27.  
  28. # GET /notifications/1/edit
  29. def edit
  30. @notification = Notification.find(params[:id])
  31. end
  32.  
  33. # POST /notifications
  34. # POST /notifications.xml
  35. def create
Add Comment
Please, Sign In to add comment