Skip to content

Instantly share code, notes, and snippets.

@robypez
Created December 16, 2015 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robypez/c52a3e9d9eb35a67b13d to your computer and use it in GitHub Desktop.
Save robypez/c52a3e9d9eb35a67b13d to your computer and use it in GitHub Desktop.
class RatesController < ApplicationController
def show
present Rate::Update # or your normal controller code here if you don't want to use Trailblazer Operations
respond_with op do |format|
format.html{ render text: cell(:rate, @model,current_user: user), layout: false, status: status}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment