File: README

package info (click to toggle)
ruby-rabl 0.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,276 kB
  • sloc: ruby: 6,732; javascript: 102; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Fixtures to test RABL:

Gemfile:
  gem 'rabl', :path => File.expand_path(File.dirname(__FILE__) + "/../../")
  gem 'riot', :group => "test"

models:

  user
    t.string :username
    t.string :email
    t.string :location
    t.boolean :is_admin
    t.timestamps
  posts
    t.integer :user_id
    t.string  :title
    t.text    :body
    t.timestamps
  phone_number
    t.integer :user_id
    t.boolean :is_primary
    t.string :area_code
    t.string :prefix
    t.string :suffix
    t.string :name

controllers:

  users
  posts

layouts:

  application.html.haml

views:
   posts (index, show, date)
   users (index, show)