File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Place all the behaviors and hooks related to the matching controller here.
2+ # All this logic will automatically be available in application.js.
3+ # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
Original file line number Diff line number Diff line change 1+ // Place all the styles related to the API::Rels controller here.
2+ // They will automatically be included in application.css.
3+ // You can use Sass (SCSS) here: http://sass-lang.com/
Original file line number Diff line number Diff line change 1+ class Api ::RelsController < ApplicationController
2+ end
Original file line number Diff line number Diff line change 1+ module Api ::RelsHelper
2+ end
Original file line number Diff line number Diff line change 1+ class Rel
2+ include MongoMapper ::Document
3+
4+ key :slug , String
5+ key :description , String
6+ end
Original file line number Diff line number Diff line change 22
33 constraints ( ApiConstraint ) do
44 match '/' => 'static#api_root'
5+ scope :module => "Api" do
6+ resources :rels
7+ end
58 end
69
710 root :to => "static#root"
Original file line number Diff line number Diff line change 1+ # Read about fixtures at http://api.rubyonrails.org/classes/Fixtures.html
2+
3+ one :
4+ slug : MyString
5+ description : MyText
6+
7+ two :
8+ slug : MyString
9+ description : MyText
Original file line number Diff line number Diff line change 1+ require 'test_helper'
2+
3+ class Api ::RelsControllerTest < ActionController ::TestCase
4+ # test "the truth" do
5+ # assert true
6+ # end
7+ end
Original file line number Diff line number Diff line change 1+ require 'test_helper'
2+
3+ class Api ::RelTest < ActiveSupport ::TestCase
4+ # test "the truth" do
5+ # assert true
6+ # end
7+ end
Original file line number Diff line number Diff line change 1+ require 'test_helper'
2+
3+ class Api ::RelsHelperTest < ActionView ::TestCase
4+ end
You can’t perform that action at this time.
0 commit comments