Skip to content

Instantly share code, notes, and snippets.

Created September 24, 2012 22:19
Show Gist options
  • Save anonymous/3778792 to your computer and use it in GitHub Desktop.
Save anonymous/3778792 to your computer and use it in GitHub Desktop.
frontend_controller.rb
class FrontendController < ApplicationController
def home
render :layout => 'frontend'
@services = Service.all
end
end
<% if client_signed_in? %>
Signed in as <%= current_client.email %>. Not you?
<%= link_to "Sign out", destroy_client_session_path, :method => :delete %>
<% end %>
<% @services.each do |service| %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment