public
Description: Conference registration System
Clone URL: git://github.com/darashi/tsudoi.git
画面周りの復元

git-svn-id: https://svn.ruby-sapporo.org/tsudoi/trunk@193 
2965336b-9d0c-4aaa-adc1-bee1224dcb4e
snoozer05 (author)
Thu Mar 13 20:26:02 -0700 2008
commit  34bdff018791e942667a8e4574e91751464c2db7
tree    4ca19ee67eff4c643452bdd35472b64c92cfc271
parent  24c3919c70f07b26d4adbd3dd5fb450aa1af43eb
...
1
 
 
2
3
4
 
 
 
5
6
7
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1,7 +1,12 @@
0
 class UsersController < ApplicationController
0
+ before_filter :login_required, :except => [:new, :create]
0
+
0
   # Be sure to include AuthenticationSystem in Application Controller instead
0
   include AuthenticatedSystem
0
   
0
+ # render index.rhtml
0
+ def index
0
+ end
0
 
0
   # render new.rhtml
0
   def new
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@
0
   <div id="logo"><h1><%= link_to 'Tsudoi', root_path %></h1></div>
0
   <p id="login_check">
0
     <% if logged_in? %>
0
- ようこそ <%=h current_user.login %> さん
0
+ ようこそ <%= link_to current_user.login, home_path %> さん
0
       (<%= link_to "ログアウト", logout_path, {:method => :delete, :confirm => "本当にログアウトしますか?"} %>)
0
     <% else %>
0
       <!--
...
9
10
11
 
12
13
14
...
9
10
11
12
13
14
15
0
@@ -9,6 +9,7 @@ ActionController::Routing::Routes.draw do |map|
0
 
0
   map.resources :users
0
   map.with_options :controller => "users" do |page|
0
+ page.home "home", :action => "index"
0
     page.signup "signup", :action => "new"
0
     page.activate "activate/:activation_code", :action => "activate"
0
   end

Comments

    No one has commented yet.