Permalink
Browse files

small updates

  • Loading branch information...
1 parent c8c83de commit 50c47ce32a56e92d8e38e75bd3245d2d26a4d06f @mockdeep mockdeep committed Sep 23, 2012
View
@@ -9,6 +9,7 @@ gem 'haml-rails'
gem "twitter-bootstrap-rails"
group :development, :test do
+ gem 'quiet_assets'
gem 'shoulda-matchers'
gem 'rspec-rails'
gem 'guard-rspec'
View
@@ -91,6 +91,8 @@ GEM
multi_json (1.3.6)
pg (0.14.1)
polyglot (0.3.3)
+ quiet_assets (1.0.1)
+ railties (~> 3.1)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
@@ -179,6 +181,7 @@ DEPENDENCIES
haml-rails
jquery-rails
pg
+ quiet_assets
rails (= 3.2.8)
rb-fsevent
rspec-rails
@@ -16,4 +16,7 @@ def authenticate_user!
redirect_to login_path unless current_user
end
+ def check_current_user
+ redirect_to root_path if current_user
+ end
end
@@ -1,4 +1,6 @@
class SessionsController < ApplicationController
+ before_filter :check_current_user, :only => [ :new, :create ]
+
def new
end
@@ -16,4 +18,5 @@ def destroy
session.clear
redirect_to root_path, :notice => "Logged out!"
end
+
end
@@ -1,4 +1,6 @@
class UsersController < ApplicationController
+ before_filter :check_current_user
+
def new
@user = User.new
end
@@ -6,7 +6,7 @@
<div class="field">
<%= f.label "Organization description:" %>
- <%= f.text_field :description %>
+ <%= f.text_area :description, :rows => 5 %>
</div>
<div class="actions">
@@ -1,3 +1,3 @@
<h2>Welcome to Tithe.</h2>
<h3>We help citizens support the governmental agencies they care most about. </h3>
-<%= button_to "Join today!", "#", class: "center btn btn-primary btn-large" %>
+<%= button_to "Join today!", sign_up_path, class: "center btn btn-primary btn-large", :method => :get %> <%= button_to "Log in!", login_path, class: "center btn btn-primary btn-large", :method => :get %>

0 comments on commit 50c47ce

Please sign in to comment.