diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2015-02-25 18:47:09 -0800 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2015-02-25 18:47:09 -0800 | 
| commit | 4e94e31aa0acda54ae962840b57ae42ca6e71185 (patch) | |
| tree | 19fa5fdc8c3bea56fb93463508a81514acd0f604 /app/views/downloads/index.json.jbuilder | |
| parent | f031bdc3e5214c699123830d8cc9f9309b792a68 (diff) | |
rails generate scaffold Download
Diffstat (limited to 'app/views/downloads/index.json.jbuilder')
| -rw-r--r-- | app/views/downloads/index.json.jbuilder | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/views/downloads/index.json.jbuilder b/app/views/downloads/index.json.jbuilder new file mode 100644 index 0000000..3323b04 --- /dev/null +++ b/app/views/downloads/index.json.jbuilder @@ -0,0 +1,4 @@ +json.array!(@downloads) do |download| +  json.extract! download, :id, :name, :filename, :type, :description, :hits +  json.url download_url(download, format: :json) +end | 
