Added more_info notice and fixed payments cancan bug
This commit is contained in:
		
							parent
							
								
									42679aa410
								
							
						
					
					
						commit
						7bfd45a163
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
class PaymentsController < ApplicationController
 | 
					class PaymentsController < ApplicationController
 | 
				
			||||||
  load_and_authorize_resource :payment
 | 
					  load_and_authorize_resource :payment
 | 
				
			||||||
  load_and_authorize_resource :user, :through => :payment
 | 
					  #load_and_authorize_resource :user, :through => :payment
 | 
				
			||||||
  before_filter :authenticate_user!
 | 
					  before_filter :authenticate_user!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Load users and certs based on current ability
 | 
					  # Load users and certs based on current ability
 | 
				
			||||||
 | 
				
			|||||||
@ -9,7 +9,7 @@ $(function(){
 | 
				
			|||||||
  <div class="field">
 | 
					  <div class="field">
 | 
				
			||||||
    <%= text_area_tag :value, @setting[:value], :cols => 50, :class => "wysiwyg" %><br/>
 | 
					    <%= text_area_tag :value, @setting[:value], :cols => 50, :class => "wysiwyg" %><br/>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
 | 
					  <em>Note: there is a /more_info page you can link to for wysiwyg purposes.</em>
 | 
				
			||||||
  <div class="field">
 | 
					  <div class="field">
 | 
				
			||||||
    <%= submit_tag "Save", {:class => "wymupdate"} %><br/>
 | 
					    <%= submit_tag "Save", {:class => "wymupdate"} %><br/>
 | 
				
			||||||
    <%= link_to "Back", settings_path %>
 | 
					    <%= link_to "Back", settings_path %>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user