Permalink
Browse files

Some cleanup

  • Loading branch information...
1 parent 8808410 commit c798669df8cc5342c2f06a250efb6d4a90348c01 @jhubert committed Apr 9, 2012
Showing with 3 additions and 12 deletions.
  1. +0 −10 app/controllers/guest_controller.rb
  2. +3 −2 app/views/events/show.html.erb
@@ -15,16 +15,6 @@ def payment
@event = Event.find_by_facebook_eid(params[:id])
end
- # TODO: Clean this up!
- #
- # Does the user have a customer_id already?
- # Have new card details been submitted
- # - Are we allowed to save the card details?
- # - save them
- # - Charge it
- # Does the user already have a card on file?
- # - charge it
- # D
def charge
@event = Event.find_by_facebook_eid(params[:id])
@@ -1,5 +1,4 @@
<h2><%= @event.name %></h2>
-<p><code><%= @event.inspect %></code></p>
<div class="well">
<%= form_tag update_donation_amount_event_path(@event), :class => 'form-inline' %>
@@ -11,4 +10,6 @@
<div class="well">
<p>Share this link in order for people to donate: <%= link_to guest_party_url(@event.facebook_eid), guest_party_path(@event.facebook_eid) %></p>
-</div>
+</div>
+
+<p><code><%= @event.inspect %></code></p>

0 comments on commit c798669

Please sign in to comment.