public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
basic layout and other bootstrapping related things
js (author)
Sun Aug 19 08:30:10 -0700 2007
commit  1f032d78653b196a935f51b85e8111848154e1d1
tree    57dc86682f3fced32377c08f209087a7022c632a
parent  1d1c4570c7d1ef8d9cf45974ba61898c0b97c177
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -0,0 +1,15 @@
0
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
0
+ "http://www.w3.org/TR/html4/strict.dtd">
0
+
0
+<html lang="en">
0
+<head>
0
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
0
+ <title><%= @page_title ? @page_title + " - " : "" -%>KeyserSource</title>
0
+ <meta name="author" content="Johan Sørensen">
0
+</head>
0
+<body>
0
+ <div class="container">
0
+ <%= yield -%>
0
+ </div>
0
+</body>
0
+</html>
...
1
 
 
 
2
3
4
...
 
1
2
3
4
5
6
0
@@ -1,4 +1,6 @@
0
-<% form_tag session_path do -%>
0
+<%= debug(logged_in?) -%>
0
+
0
+<% form_tag sessions_path do -%>
0
 <p><label for="login">Login</label><br/>
0
 <%= text_field_tag 'login' %></p>
0
 
...
29
30
31
32
 
33
34
35
...
29
30
31
 
32
33
34
35
0
@@ -29,7 +29,7 @@ Rails::Initializer.run do |config|
0
 
0
   # Use the database for sessions instead of the file system
0
   # (create the session table with 'rake db:sessions:create')
0
- config.action_controller.session_store = :active_record_store
0
+ # config.action_controller.session_store = :active_record_store
0
 
0
   # Use SQL instead of Active Record's schema dumper when creating the test database.
0
   # This is necessary if your schema can't be completely dumped by the schema dumper,
...
19
20
21
 
22
...
19
20
21
22
23
0
@@ -19,3 +19,4 @@ config.action_view.debug_rjs = true
0
 
0
 # Don't care if the mailer can't send
0
 config.action_mailer.raise_delivery_errors = false
0
+config.action_mailer.delivery_method = :test
0
\ No newline at end of file
...
17
18
19
 
 
20
21
 
 
 
 
 
 
22
23
24
...
17
18
19
20
21
22
 
23
24
25
26
27
28
29
30
31
0
@@ -17,8 +17,15 @@ ActionController::Routing::Routes.draw do |map|
0
   # instead of a file named 'wsdl'
0
   #map.connect ':controller/service.wsdl', :action => 'wsdl'
0
   
0
+ map.home "", :controller => "sessions", :action => "new" # TODO change eventually
0
+
0
   map.resources :users
0
- map.resource :session
0
+ map.resource :sessions
0
+
0
+ map.with_options :controller => 'sessions' do |session|
0
+ session.login 'login', :action => 'new'
0
+ session.logout 'logout', :action => 'destroy'
0
+ end
0
 
0
   # Install the default route as the lowest priority.
0
   map.connect ':controller/:action/:id.:format'

Comments

    No one has commented yet.