Permalink
Browse files

add tasks controller

  • Loading branch information...
1 parent e0c1cb5 commit 4bf7c858ab08376491085010a3e2c0209960b6a9 @mohammadkotb committed Jan 30, 2012
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
+// Place all the styles related to the tasks controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,8 @@
+class TasksController < ApplicationController
+ def create
+ puts '>>>>>>> in tasks controller create'
+ @task = Task.new params[:task]
+ @task.save
+ render :nothing => true
+ end
+end
@@ -0,0 +1,2 @@
+module TasksHelper
+end
View
@@ -1,5 +1,5 @@
Doit::Application.routes.draw do
-
+ resources :tasks
root :to => 'home#index'
end
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TasksControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
@@ -0,0 +1,4 @@
+require 'test_helper'
+
+class TasksHelperTest < ActionView::TestCase
+end

0 comments on commit 4bf7c85

Please sign in to comment.