Is there a route to get a cooked post, but without rendered oneboxes?

Just hide or remove the DOM element. It’s quite a simple task.

  1. Match User Agent string with Ruby and set a boolean on a match**.
  2. Javascript to hide the DOM element if the boolean is true.

This is basically the “standard” way to do this and similar tasks where a developer does not want to show (or wants to remove) any DOM element.


**Note:

Using the ‘gon’ Ruby gem makes passing any Ruby variable to Javascript very simple, but I have only used it on a Rails app, not with EmberJS in the stack (anyway, there are many ways to pass a Ruby variable to JS)..