Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (41 sloc) 1.297 kb
1ef6fd6 @iain Add styling
authored
1 !!!
2 %html
3 %head
4 %title Simple Backend Example
5 = stylesheet_link_tag "backend"
6 = javascript_include_tag "backend"
7 = csrf_meta_tag
8 %body
0a9f5a8 @iain Apply Twitter bootstrap
authored
9 .topbar
10 .fill
11 .container
12 = link_to "Simple Backend Example", backend_root_path, :class => "brand"
13 %ul.nav
14 %li.active= link_to "Home", "#"
1ef6fd6 @iain Add styling
authored
15 %li= link_to "Products", backend_products_path
6f2dd51 @iain Widgets and namespacing example
authored
16 %li= link_to "Widgets", backend_widgets_path
0a9f5a8 @iain Apply Twitter bootstrap
authored
17
18
19 .container
20 .content
21 .page-header
22 = yield :header
23 .row
cc2a41a @iain Add responder and flash messages
authored
24 - if flash[:alert]
0a9f5a8 @iain Apply Twitter bootstrap
authored
25 .alert-message.error
cc2a41a @iain Add responder and flash messages
authored
26 %p= flash[:alert]
27 - if flash[:notice]
0a9f5a8 @iain Apply Twitter bootstrap
authored
28 .alert-message.info
cc2a41a @iain Add responder and flash messages
authored
29 %p= flash[:notice]
0a9f5a8 @iain Apply Twitter bootstrap
authored
30 .span10
31 = yield
32 .span4
33 = yield :sidebar
34 .block.notice
35 %h4 Simple Backend Example
36 %p This is an example of creating your own backend in Rails 3.1.
37 %p
38 Learn more about it on
39 = link_to "iain.nl", "http://iain.nl/backends-in-rails-3-1"
40 or find the source on
41 = link_to "github", "https://github.com/iain/simple-backend-example"
42 %footer
43 %p Copyright © #{Time.now.year} Iain Hecker.
Something went wrong with that request. Please try again.