Sha256: d2caf877d85a22d9a922bed1c2a7d9b8d68553603edc86c9bcbd111c58d97cfb

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

class TestController < ApplicationController
  before_filter :set_model

  def javascript_bindings; end
  def form_helpers; end

  def form_for_helper
    @models = ng_bindable([@model])
  end

  def set_model
    @model = ng_bindable(TestModel.new(name: params[:name]))
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 spec/dummy/app/controllers/test_controller.rb
angular_sprinkles-0.3.2 spec/dummy/app/controllers/test_controller.rb
angular_sprinkles-0.3.1 spec/dummy/app/controllers/test_controller.rb