Skip to content

Instantly share code, notes, and snippets.

@gmoeck
Created July 11, 2012 06:00
Show Gist options
  • Save gmoeck/3088263 to your computer and use it in GitHub Desktop.
Save gmoeck/3088263 to your computer and use it in GitHub Desktop.
class SomeController < ApplicationController
...
def update
ui = SomeViewAdapter.new
domain = SomeDomain.new(ui)
translator = SomeRailsAdapter.new(domain)
translator.some_action(params)
#some processing based upon ui values in order to know what view to render, etc
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment