Changeset 99
- Timestamp:
- 10/20/08 13:07:54 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/app/controllers/explorator_controller.rb
r94 r99 14 14 #default rails method. returns the view index.rhtml. 15 15 def index 16 17 end 18 # prints the filter screen 16 17 end 18 19 def resourcefilter 20 @resourceset = Application.get(params[:uri]) 21 render :partial => 'subject_view',:layout=>false; 22 end 23 # prints the filter screen 19 24 def filter 20 25 @setid=params[:uri] … … 45 50 # must has been defined before. 46 51 def update 47 puts params[:exp]52 puts params[:exp] 48 53 #reevaluate the expression and return the set 49 54 resource = Application.get(params[:uri]) … … 89 94 #The refresh method return a determined ResourceSet from the SetsPool 90 95 #This method is called by the Execute method, being passed as a parameter by the interface. 91 def refresh(uri,view=:subject_view) 92 @resourceset= Application.get(uri).setWithOffset(0) 96 def refresh(uri,view=:subject_view,filter=nil) 97 @resourceset= Application.get(uri).setWithOffset(0) 98 99 @filter=filter 93 100 #render the _window.rhtml view 94 101 render :partial => view.to_s , :layout=>false
