Displaying 1 result from an estimated 1 matches for "abari".
Did you mean:
abar
2012 Feb 28
1
Conditional execution of javascript / embedding Cappuccino files into Rails
I have a Cappuccino app that I am integrating with a Rails backend. A
key feature of the app is authentication which is managed entirely by
rails. The way I set it up is that the cappuccino js conditionally
executes if the user is logged in, like this:
<% if signed_in? %>
<div id="cappuccino-body">
<script type="text/javascript">
document.write("Hello