Skip to content

Instantly share code, notes, and snippets.

@thomasv314
Forked from anonymous/home.html.erb
Created September 24, 2012 22:20
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 thomasv314/3778798 to your computer and use it in GitHub Desktop.
Save thomasv314/3778798 to your computer and use it in GitHub Desktop.
frontend_controller.rb
class FrontendController < ApplicationController
layout "frontend"
def home
@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