bowtie 0.2 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/bowtie.gemspec +1 -1
- data/lib/bowtie/views/errors.erb +8 -2
- metadata +2 -1
data/README.rdoc
CHANGED
@@ -17,7 +17,7 @@ Mount Bowtie wherever you want by editing your config.ru file, optionally includ
|
|
17
17
|
require 'myapp'
|
18
18
|
require 'bowtie'
|
19
19
|
|
20
|
-
|
20
|
+
BOWTIE_AUTH = {:user => 'admin', :pass => '12345' }
|
21
21
|
|
22
22
|
app = Rack::Builder.new {
|
23
23
|
map "/admin" do
|
data/bowtie.gemspec
CHANGED
data/lib/bowtie/views/errors.erb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
<%
|
1
|
+
<% begin
|
2
|
+
|
3
|
+
if @resource and @resource.errors.any? %>
|
2
4
|
|
3
5
|
<div class="errorlist">
|
4
6
|
|
@@ -10,4 +12,8 @@
|
|
10
12
|
|
11
13
|
</div>
|
12
14
|
|
13
|
-
<% end
|
15
|
+
<% end
|
16
|
+
|
17
|
+
rescue NoMethodError
|
18
|
+
# dm-validations not included
|
19
|
+
end %>
|