Skip to content

Commit

Permalink
remove rails cruft and basic setup of js assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Moore committed May 22, 2011
1 parent d94db4a commit 2259328
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 256 deletions.
9 changes: 0 additions & 9 deletions app/assets/javascripts/application.js

This file was deleted.

2 changes: 2 additions & 0 deletions app/assets/javascripts/application.js.coffee
@@ -0,0 +1,2 @@
$ ->
alert 'woop!'
2 changes: 1 addition & 1 deletion app/controllers/cameras_controller.rb
@@ -1,5 +1,5 @@
class CamerasController < ApplicationController
respond_to :json
respond_to :json, :html

def index
@cameras = Camera.all
Expand Down
1 change: 1 addition & 0 deletions app/views/cameras/index.html.erb
@@ -0,0 +1 @@
<h1>Hi</h1>
6 changes: 2 additions & 4 deletions app/views/layouts/application.html.erb
Expand Up @@ -3,12 +3,10 @@
<head>
<title>Artimis</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

<%= yield %>
<%= javascript_include_tag '/assets/vendor.js', '/assets/application.js' %>
</body>
</html>
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,4 +1,4 @@
ArtimisRails::Application.routes.draw do
Artimis::Application.routes.draw do
scope '/api' do
scope '/v1' do
resources :cameras
Expand Down
241 changes: 0 additions & 241 deletions public/index.html

This file was deleted.

Empty file removed public/javascripts/application.js
Empty file.

0 comments on commit 2259328

Please sign in to comment.