diff options
author | rautenberg <rautenberg@in-silico.ch> | 2016-09-02 11:23:02 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2016-09-02 11:23:02 +0200 |
commit | 2f399ac5af0a855220fa20d7fbbc1cc97d0bf529 (patch) | |
tree | 7dd7c3d61ef937f95bdb8f0fdf48e97bfe2bf39a | |
parent | 2e88fdd53fb7dfb85904f3b77fc2e48f09a1f727 (diff) |
add feature route and feature lib , + fix typo
-rw-r--r-- | lib/feature.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feature.rb b/lib/feature.rb index 8ec0062..75e3f1f 100644 --- a/lib/feature.rb +++ b/lib/feature.rb @@ -18,7 +18,7 @@ end # Get a feature get "/feature/:id/?" do - feature = Substance.find :id => params[:id] + feature = Feature.find :id => params[:id] resource_not_found_error "Feature with id: #{params[:id]} not found." unless feature feature[:URI] = uri("/feature/#{feature.id}") return feature.to_json |