Skip to content

Instantly share code, notes, and snippets.

Created September 24, 2012 22:19
Show Gist options
  • Select an option

  • Save anonymous/3778792 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/3778792 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Sep 24, 2012.
    9 changes: 9 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    class FrontendController < ApplicationController

    def home
    render :layout => 'frontend'

    @services = Service.all
    end

    end
    11 changes: 11 additions & 0 deletions home.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <% 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 %>