public
Description: Canberra Ruby Crew Site #crc
Homepage: http://canberraruby.com
Clone URL: git://github.com/artpop/crc_site.git
Installed jRails plugin and added UI datepicker to meetings new/edit views via a 
form partial
schlick (author)
Tue Oct 21 07:34:04 -0700 2008
commit  cad924776c13ab9fa6d744a441b088969ffaee6f
tree    a509198db9bd12da9f1fafdc149aef9cac87656b
parent  ced7b81593e249d7e62783d209486804c3556100
...
6
7
8
9
10
 
 
 
 
11
12
13
...
6
7
8
 
 
9
10
11
12
13
14
15
0
@@ -6,8 +6,10 @@
0
     %title Canberra Ruby Crew
0
     %link{:href => '/images/icon.png', :rel => 'icon', :sizes => '16x16', :type => 'image/png'}
0
     = stylesheet_link_tag 'application', :media => 'all'
0
-    = javascript_include_tag 'jquery', 'application', :cache => false
0
-
0
+    =# javascript_include_tag 'jquery', 'application', :cache => false
0
+    =# Using jRails plugin
0
+    = javascript_include_tag :defaults
0
+    = yield :head
0
   %body
0
     #main
0
       %div.wrapper
...
1
 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
16
17
18
...
 
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
0
@@ -1,18 +1,6 @@
0
-%h1 Editing meeting
0
+%h1 Edit a meeting
0
 
0
-- form_for(@meeting) do |f|
0
-  = f.error_messages
0
-
0
-  %p
0
-    = f.label :date
0
-    %br
0
-    = f.datetime_select :date
0
-  %p
0
-    = f.label :venue
0
-    %br
0
-    = f.text_field :venue
0
-  %p
0
-    = f.submit "Update"
0
+= render :partial => 'form'
0
 
0
 = link_to 'Show', @meeting
0
 |
...
19
20
21
22
 
...
19
20
21
 
22
0
@@ -19,4 +19,4 @@
0
   - else
0
     There have not been any meetings yet
0
     
0
-%p= link_to 'New meeting', new_meeting_path
0
+%p= link_to 'Schedule a new meeting', new_meeting_path
...
1
 
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
16
17
...
 
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
0
@@ -1,17 +1,5 @@
0
-%h1 New meeting
0
+%h1 Schedule a new meeting
0
 
0
-- form_for(@meeting) do |f|
0
-  = f.error_messages
0
-
0
-  %p
0
-    = f.label :date
0
-    %br
0
-    = f.datetime_select :date
0
-  %p
0
-    = f.label :venue
0
-    %br
0
-    = f.text_field :venue
0
-  %p
0
-    = f.submit "Create"
0
+= render :partial => 'form'
0
 
0
 = link_to 'Back', meetings_path
...
5
6
7
8
 
9
10
11
...
5
6
7
 
8
9
10
11
0
@@ -5,7 +5,7 @@
0
  * Dual licensed under the MIT (MIT-LICENSE.txt)
0
  * and GPL (GPL-LICENSE.txt) licenses.
0
  *
0
- * $Date: 2008/05/26 $
0
+ * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
0
  * $Rev: 5685 $
0
  */
0
 (function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else

Comments