Class: StudentsController

Inherits:
ApplicationController show all
Defined in:
lib/vendor/plugins/inherited_resources/test/aliases_test.rb

Instance Attribute Summary

Attributes inherited from ActionController::Base

#formats

Instance Method Summary collapse

Methods included from InheritedResources::DSL

included

Methods inherited from ActionController::Base

clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder

Instance Method Details

#editObject



15
16
17
18
19
# File 'lib/vendor/plugins/inherited_resources/test/aliases_test.rb', line 15

def edit
  edit! do |format|
    format.xml { render :text => 'Render XML' }
  end
end

#newObject



21
22
23
24
# File 'lib/vendor/plugins/inherited_resources/test/aliases_test.rb', line 21

def new
  @something = 'magical'
  new!
end