Class: Msg::SendingsController

Inherits:
EngineController show all
Defined in:
app/controllers/msg/sendings_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



28
29
30
31
# File 'app/controllers/msg/sendings_controller.rb', line 28

def create
  @sending.update_attributes(sending_params)
  respond_with @sending
end

#destroyObject



33
34
35
36
# File 'app/controllers/msg/sendings_controller.rb', line 33

def destroy
  @sending.destroy
  head :ok
end

#indexObject



10
11
12
13
14
# File 'app/controllers/msg/sendings_controller.rb', line 10

def index
  respond_with @sendings do |format|
    format.js { render :partial => "report"}
  end
end

#newObject



24
25
26
# File 'app/controllers/msg/sendings_controller.rb', line 24

def new
  respond_with @sending
end

#reviewObject



20
21
22
# File 'app/controllers/msg/sendings_controller.rb', line 20

def review
  respond_with @sending, :layout => Msg.email_layout
end

#showObject



16
17
18
# File 'app/controllers/msg/sendings_controller.rb', line 16

def show
  respond_with @sending
end