noodall-ui 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,8 +33,12 @@ module Noodall
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def search
|
36
|
-
|
37
|
-
|
36
|
+
if params[:q].nil?
|
37
|
+
render_404
|
38
|
+
else
|
39
|
+
@nodes = Node.search(params[:q], :per_page => 10, :page => params[:page], :published_at => { :$lte => Time.zone.now }, :published_to => { :$gte => Time.zone.now })
|
40
|
+
@page_title = 'Searching: '+ params[:q]
|
41
|
+
end
|
38
42
|
end
|
39
43
|
|
40
44
|
protected
|
data/lib/noodall/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 17
|
10
|
+
version: 0.3.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06-
|
18
|
+
date: 2011-06-03 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|