Sha256: 7447ffb5237b8e6913b4a3a0b41776506f2b5698b768ba7e28c142ab805cb987
Contents?: true
Size: 769 Bytes
Versions: 9
Compression:
Stored size: 769 Bytes
Contents
class <%= controller_class_name %>Controller < ResourceController::Base before_filter :load_fxml_params index.wants.fxml { render :fxml => @collection.to_fxml(@fxml_params) } show.wants.fxml { render :fxml => @object.to_fxml(@fxml_params) } create.wants.fxml { render :fxml => @object.to_fxml(@fxml_params) } create.failure.wants.fxml { render :fxml => @object.errors } update.wants.fxml { render :fxml => @object.to_fxml(@fxml_params) } update.failure.wants.fxml { render :fxml => @object.errors } destroy.wants.fxml { render :fxml => @object } private def collection @collection = end_of_association_chain.all end def load_fxml_params @fxml_params = { } end end
Version data entries
9 entries across 9 versions & 4 rubygems