Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def index
- @notifications = Notification.find(:all, :conditions => {:user_id => @current_user.id}, :order => :rule)
- end
- # GET /notifications/1
- # GET /notifications/1.xml
- def show
- @notification = Notification.find(params[:id])
- respond_to do |format|
- format.html # show.html.erb
- format.xml { render :xml => @notification }
- end
- end
- # GET /notifications/new
- # GET /notifications/new.xml
- def new
- @structures = Structure.find(:all, :conditions => {:structure_type => "Building"})
- respond_to do |format|
- format.html # new.html.erb
- format.xml { render :xml => @notification }
- end
- end
- # GET /notifications/1/edit
- def edit
- @notification = Notification.find(params[:id])
- end
- # POST /notifications
- # POST /notifications.xml
- def create
Add Comment
Please, Sign In to add comment