Skip to content

Commit

Permalink
Adds ember tree; Main controller with index action; Sets main#index a…
Browse files Browse the repository at this point in the history
…s root

Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Mar 6, 2012
1 parent 4ecb0e4 commit 0c7890d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 1 deletion.
Empty file.
Empty file.
8 changes: 8 additions & 0 deletions app/assets/javascripts/ember/kandan.js.coffee
@@ -0,0 +1,8 @@
#= require_self
#= require_tree ./models
#= require_tree ./controllers
#= require_tree ./views
#= require_tree ./helpers
#= require_tree ./templates

window.Kandan = Ember.Application.create()
Empty file.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions app/controllers/main_controller.rb
@@ -0,0 +1,4 @@
class MainController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions app/views/main/index.html.erb
@@ -0,0 +1,2 @@
<h1>Main#index</h1>
<p>Find me in app/views/main/index.html.erb</p>
3 changes: 2 additions & 1 deletion config/routes.rb
@@ -1,5 +1,6 @@
Kandan::Application.routes.draw do
get "main/index"

root :to => "main#index"

#devise_for :users

Expand Down

0 comments on commit 0c7890d

Please sign in to comment.