Class: Flms::TextLayersController

Inherits:
AbstractLayerController show all
Defined in:
app/controllers/flms/text_layers_controller.rb

Instance Method Summary collapse

Methods inherited from AbstractLayerController

#edit

Methods inherited from ApplicationController

#with_format

Instance Method Details

#createObject



8
9
10
11
# File 'app/controllers/flms/text_layers_controller.rb', line 8

def create
  @layer = TextLayer.new params[:text_layer]
  do_create
end

#newObject



4
5
6
# File 'app/controllers/flms/text_layers_controller.rb', line 4

def new
  @layer = TextLayer.new.build_default_keyframes
end

#updateObject



13
14
15
# File 'app/controllers/flms/text_layers_controller.rb', line 13

def update
  do_update @layer.update_attributes(params[:text_layer])
end