Skip to content

Sample app for showing extending errors in roar-rails

Notifications You must be signed in to change notification settings

chrisupb/mongoid-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Getting Started
Note: You should install mongodb database, before using this application.

1. Clone the application
2. bundle install
3. rails s


== Model
An Artist embeds one instrument. There is an ArtistRepresenter and InstrumentRepresenter. We use 'roar-rails' GEM.

== Reproduce error
Accept application/json

1. POST http://127.0.0.1:3000/artists in order to create an artist.
2. GET http://127.0.0.1:3000/artists/:id  => undefined local variable or method `artists_url' for #<Artists::Instrument:0x00000001c16000>

URL helpers for the _embedded_ class 'instrument' are not available.

About

Sample app for showing extending errors in roar-rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 72.1%
  • JavaScript 27.9%