Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ember is set up.

  • Loading branch information...
commit 06f96c02f4f8ebf62cde9020f37d72ae3cfc93d5 1 parent 10e9dd7
@steveklabnik authored
View
2  Gemfile
@@ -12,3 +12,5 @@ gem 'jquery-rails'
gem 'ember-rails', :github => "steveklabnik/ember-rails", :branch => "master"
gem "twitter-bootstrap-rails"
+gem "coffee-script"
+
View
5 Gemfile.lock
@@ -71,6 +71,10 @@ GEM
specs:
arel (3.0.2)
builder (3.0.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
commonjs (0.2.6)
erubis (2.7.0)
execjs (1.4.0)
@@ -137,6 +141,7 @@ PLATFORMS
DEPENDENCIES
active_model_serializers!
active_record_deprecated_finders!
+ coffee-script
ember-rails!
jquery-rails
rails!
View
4 app/assets/javascripts/application.js
@@ -9,9 +9,9 @@
//= require twitter/bootstrap
//= require ember
//= require handlebars
-//= require ember
//= require ember-data
//= require_self
-//= require get_a_job
GetAJob = Ember.Application.create();
+//= require get_a_job
//= require_tree .
+
View
5 app/controllers/welcome_controller.rb
@@ -0,0 +1,5 @@
+class WelcomeController < ActionController::Base
+ layout 'application'
+ def index
+ end
+end
View
14 app/views/layouts/application.html.erb
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>GetAJob</title>
+ <%= stylesheet_link_tag "application", :media => "all" %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tags %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
View
1  app/views/welcome/index.html.erb
@@ -0,0 +1 @@
+Hello
View
2  config/application.rb
@@ -56,5 +56,7 @@ class Application < Rails::Application
# Version of your assets, change this if you want to expire all your assets.
config.assets.version = '1.0'
+
+ config.ember.variant = :development
end
end
View
3  config/routes.rb
@@ -1,6 +1,7 @@
GetAJob::Application.routes.draw do
get "/profile" => "profile#show"
- root :to => "jobs#new"
+
+ root :to => "welcome#index"
resources :jobs, except: :edit
end
View
0  test/fixtures/.gitkeep
No changes.
View
7 test/fixtures/jobs.yml
@@ -1,7 +0,0 @@
-# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
-
-one:
- status: MyString
-
-two:
- status: MyString
View
0  test/functional/.gitkeep
No changes.
View
7 test/functional/jobs_controller_test.rb
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class JobsControllerTest < ActionController::TestCase
- # test "the truth" do
- # assert true
- # end
-end
View
9 test/functional/profile_controller_test.rb
@@ -1,9 +0,0 @@
-require 'test_helper'
-
-class ProfileControllerTest < ActionController::TestCase
- test "should get show" do
- get :show
- assert_response :success
- end
-
-end
View
0  test/integration/.gitkeep
No changes.
View
12 test/performance/browsing_test.rb
@@ -1,12 +0,0 @@
-require 'test_helper'
-require 'rails/performance_test_help'
-
-class BrowsingTest < ActionDispatch::PerformanceTest
- # Refer to the documentation for all available options
- # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
- # :output => 'tmp/performance', :formats => [:flat] }
-
- def test_homepage
- get '/'
- end
-end
View
13 test/test_helper.rb
@@ -1,13 +0,0 @@
-ENV["RAILS_ENV"] = "test"
-require File.expand_path('../../config/environment', __FILE__)
-require 'rails/test_help'
-
-class ActiveSupport::TestCase
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
- #
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
- # -- they do not yet inherit this setting
- fixtures :all
-
- # Add more helper methods to be used by all tests here...
-end
View
0  test/unit/.gitkeep
No changes.
View
7 test/unit/job_test.rb
@@ -1,7 +0,0 @@
-require 'test_helper'
-
-class JobTest < ActiveSupport::TestCase
- # test "the truth" do
- # assert true
- # end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.