devape_calendar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,8 +2,8 @@ class Member::CalendarsController < AbstractMemberController
|
|
2
2
|
# GET /member/calendars
|
3
3
|
# GET /member/calendars.json
|
4
4
|
def index
|
5
|
-
@member_calendars = Member::Calendar.
|
6
|
-
@
|
5
|
+
@member_calendars = Member::Calendar.find(:all)
|
6
|
+
@rails_calendar = @member_calendars.to_json(:methods => :url)
|
7
7
|
respond_to do |format|
|
8
8
|
format.html # index.html.erb
|
9
9
|
format.json { render json: @member_calendars }
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<h1>Listing member_calendars</h1>
|
2
2
|
<%= link_to 'New Calendar', new_member_calendar_path %>
|
3
|
+
<%= @rails_calendar %>
|
3
4
|
<script type='text/javascript'>
|
4
5
|
//var foo = {"bindings": [
|
5
6
|
// {"ircEvent": "PRIVMSG", "method": "newURI", "regex": "^http://.*"},
|
@@ -7,14 +8,13 @@
|
|
7
8
|
// {"ircEvent": "PRIVMSG", "method": "randomURI", "regex": "^random.*"}
|
8
9
|
// ]
|
9
10
|
//};
|
10
|
-
var
|
11
|
+
var rails_calendar = <%= raw @rails_calendar %>;
|
11
12
|
|
12
13
|
$(document).ready(function() {
|
13
14
|
var date = new Date();
|
14
15
|
var d = date.getDate();
|
15
16
|
var m = date.getMonth();
|
16
17
|
var y = date.getFullYear();
|
17
|
-
alert(Date(y,m,1));
|
18
18
|
$('#calendar').fullCalendar({
|
19
19
|
header: {
|
20
20
|
left: 'prev,next today',
|
@@ -22,7 +22,7 @@
|
|
22
22
|
right: 'month,agendaWeek,agendaDay'
|
23
23
|
},
|
24
24
|
editable: false,
|
25
|
-
events:
|
25
|
+
events:rails_calendar
|
26
26
|
});
|
27
27
|
|
28
28
|
});
|
@@ -38,7 +38,7 @@
|
|
38
38
|
}
|
39
39
|
|
40
40
|
#calendar {
|
41
|
-
width:
|
41
|
+
width: 700px;
|
42
42
|
margin: 0 auto;
|
43
43
|
}
|
44
44
|
|
data/lib/devape_calendar.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devape_calendar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.1
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Kealy
|
@@ -10,7 +9,8 @@ autorequire:
|
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
11
|
|
13
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-10 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: Insert DevapeCalendar description.
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- MIT-LICENSE
|
46
46
|
- Rakefile
|
47
47
|
- README.rdoc
|
48
|
+
has_rdoc: true
|
48
49
|
homepage:
|
49
50
|
licenses: []
|
50
51
|
|
@@ -54,21 +55,21 @@ rdoc_options: []
|
|
54
55
|
require_paths:
|
55
56
|
- lib
|
56
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: "0"
|
62
|
+
version:
|
62
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
64
|
requirements:
|
65
65
|
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: "0"
|
68
|
+
version:
|
68
69
|
requirements: []
|
69
70
|
|
70
71
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.
|
72
|
+
rubygems_version: 1.3.5
|
72
73
|
signing_key:
|
73
74
|
specification_version: 3
|
74
75
|
summary: Insert DevapeCalendar summary.
|