Sha256: d9c9fc5954f2780936916d963e564d5aff5a1fec63666f057c271f72b0d64d50

Contents?: true

Size: 423 Bytes

Versions: 5

Compression:

Stored size: 423 Bytes

Contents

class FoosController < ActionController::Base
  protect_from_forgery
  def index
  end

  def create
    Foo.create(name: params["name"],value: 0)
  end

  def update
    Foo.find(params["id"]).update(name: params["name"],value: params["value"])
    redirect_to edit_foo_url
  end

  def edit
  end

  def two_in_one
    Doo.create(name: "doo dummy", value: 2)
    Foo.first.update(name: "Dummy nameee",value: 4)
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oh_my_log-1.0.5 spec/dummy/app/controllers/foos_controller.rb
oh_my_log-1.0.4 spec/dummy/app/controllers/foos_controller.rb
oh_my_log-1.0.3 spec/dummy/app/controllers/foos_controller.rb
oh_my_log-1.0.2 spec/dummy/app/controllers/foos_controller.rb
oh_my_log-1.0.1 spec/dummy/app/controllers/foos_controller.rb