-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mariam2yman
committed
May 1, 2015
1 parent
b2afbf2
commit 5218c89
Showing
36 changed files
with
170 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*~backup-* | ||
.c9revisions | ||
.c9 | ||
.git | ||
.svn | ||
.DS_Store | ||
.bzr | ||
.cdv | ||
~.dep | ||
~.dot | ||
~.nib | ||
~.plst | ||
.hg | ||
.pc | ||
*.min.js | ||
.nakignore | ||
/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"filter":false,"title":"bash - \"Cloning ...\"","tooltip":"bash - \"Cloning ...\"","undoManager":{"mark":0,"position":-1,"stack":[]},"terminal":{"id":"clone","cwd":"","width":1333,"height":124,"scrollTop":30.00006103515625},"hash":"67452301efcdab8998badcfe10325476c3d2e1f0"} |
1 change: 1 addition & 0 deletions
1
.c9/metadata/workspace/Project/app/controllers/pitches_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"filter":false,"title":"pitches_controller.rb","tooltip":"/Project/app/controllers/pitches_controller.rb","undoManager":{"mark":2,"position":2,"stack":[[{"group":"doc","deltas":[{"start":{"row":90,"column":3},"end":{"row":91,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":91,"column":0},"end":{"row":92,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":91,"column":0},"end":{"row":98,"column":3},"action":"insert","lines":[" def submitTheEvaluation"," @pitch = Pitch.find(params[:id])"," #if ! current_user.is_Idea_Consultant?"," "," # redirect_to pitch_path(@pitch), alert: \"you can not evaluate\""," #redirect_to @pitch, notice: \"The Evaluation has been sent successfuly\""," #end","end"]}]}]]},"ace":{"folds":[],"scrolltop":587,"scrollleft":0,"selection":{"start":{"row":55,"column":1},"end":{"row":55,"column":1},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":44,"state":"start","mode":"ace/mode/ruby"}},"timestamp":1430257269630,"hash":"eb094e2239e27613395c3ed9adb26e6deb581d87"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"filter":false,"title":"show.html.erb","tooltip":"/Project/app/views/pitches/show.html.erb","undoManager":{"mark":2,"position":2,"stack":[[{"group":"doc","deltas":[{"start":{"row":80,"column":34},"end":{"row":81,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":81,"column":0},"end":{"row":82,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":82,"column":0},"end":{"row":88,"column":51},"action":"insert","lines":["<form action=\"<%= submitTheEvaluation_pitch_path %>\" id=\"EvaluateTheIdea\" method=\"get\" onsubmit=\"return ValidateForm(this);\">","<label for=\"Evaluate\">Evaluate The Idea</label><br />","<textarea name=\"Evaluate\" rows=\"5\" cols=\"40\" style=\"width: 500px;\"></textarea>","<br />","<div style=\"float: middle\">",""," <input name=\"post\" type=\"submit\" value=\"Post\" /> "]}]}]]},"ace":{"folds":[],"scrolltop":626,"scrollleft":0,"selection":{"start":{"row":88,"column":51},"end":{"row":88,"column":51},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":44,"state":"start","mode":"ace/mode/html_ruby"}},"timestamp":1430257266793,"hash":"cd1407f8df5e59a5859d33a8a1c2e266675623a4"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"filter":false,"title":"routes.rb","tooltip":"/Project/config/routes.rb","undoManager":{"mark":1,"position":1,"stack":[[{"group":"doc","deltas":[{"start":{"row":9,"column":24},"end":{"row":10,"column":0},"action":"insert","lines":["",""]},{"start":{"row":10,"column":0},"end":{"row":10,"column":5},"action":"insert","lines":[" "]}]}],[{"group":"doc","deltas":[{"start":{"row":10,"column":5},"end":{"row":10,"column":30},"action":"insert","lines":["get 'submitTheEvaluation'"]}]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":10,"column":30},"end":{"row":10,"column":30},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":47,"state":"start","mode":"ace/mode/ruby"}},"timestamp":1430257260979,"hash":"053e3908ea90de7334f7989a416f2bea4581e2ec"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"filter":false,"title":"seeds.rb","tooltip":"/Project/db/seeds.rb","undoManager":{"mark":3,"position":3,"stack":[[{"group":"doc","deltas":[{"start":{"row":31,"column":0},"end":{"row":32,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":32,"column":0},"end":{"row":33,"column":0},"action":"insert","lines":["",""]}]}],[{"group":"doc","deltas":[{"start":{"row":33,"column":0},"end":{"row":37,"column":0},"action":"insert","lines":["ideaConsultant_user1 = User.new( :email => 'MariamAyman@hotmail.com', :password => '12345678')","ideaConsultant_user1.is_Idea_Consultant = true","ideaConsultant_user1.approved = true","ideaConsultant_user1.save!",""]}]}],[{"group":"doc","deltas":[{"start":{"row":8,"column":0},"end":{"row":8,"column":2},"action":"insert","lines":["# "]},{"start":{"row":9,"column":0},"end":{"row":9,"column":2},"action":"insert","lines":["# "]},{"start":{"row":10,"column":0},"end":{"row":10,"column":2},"action":"insert","lines":["# "]},{"start":{"row":14,"column":0},"end":{"row":14,"column":2},"action":"insert","lines":["# "]},{"start":{"row":15,"column":0},"end":{"row":15,"column":2},"action":"insert","lines":["# "]},{"start":{"row":16,"column":0},"end":{"row":16,"column":2},"action":"insert","lines":["# "]},{"start":{"row":17,"column":0},"end":{"row":17,"column":2},"action":"insert","lines":["# "]},{"start":{"row":19,"column":0},"end":{"row":19,"column":2},"action":"insert","lines":["# "]},{"start":{"row":20,"column":0},"end":{"row":20,"column":2},"action":"insert","lines":["# "]},{"start":{"row":21,"column":0},"end":{"row":21,"column":2},"action":"insert","lines":["# "]},{"start":{"row":22,"column":0},"end":{"row":22,"column":2},"action":"insert","lines":["# "]},{"start":{"row":27,"column":0},"end":{"row":27,"column":2},"action":"insert","lines":["# "]},{"start":{"row":28,"column":0},"end":{"row":28,"column":2},"action":"insert","lines":["# "]},{"start":{"row":29,"column":0},"end":{"row":29,"column":2},"action":"insert","lines":["# "]},{"start":{"row":30,"column":0},"end":{"row":30,"column":2},"action":"insert","lines":["# "]}]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":30,"column":21},"end":{"row":30,"column":21},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1430256785028,"hash":"18b3483e9edd0b69acec14b6d56bcaf965db7d09"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"ace": { | ||
"@guessTabSize": "true", | ||
"@newLineMode": "unix", | ||
"@tabSize": "4", | ||
"@useSoftTabs": "true" | ||
}, | ||
"build": { | ||
"@builder": "auto", | ||
"@path": "/.c9/builders", | ||
"@saveall": "true" | ||
}, | ||
"find.nak": { | ||
"@searchLimit": 100 | ||
}, | ||
"general": { | ||
"@stripws": false | ||
}, | ||
"language": { | ||
"@eslintrc": "true", | ||
"@instanceHighlight": "true", | ||
"@semi": "true", | ||
"@undeclaredVars": "true", | ||
"@unusedFunctionArgs": "false", | ||
"@warnLevel": "info" | ||
}, | ||
"run": { | ||
"@path": "/.c9/runners", | ||
"configs": { | ||
"@inited": "true", | ||
"json()": { | ||
"Ruby on Rails": { | ||
"command": "", | ||
"default": true, | ||
"name": "Ruby on Rails", | ||
"runner": "Ruby on Rails (Rails 4.0 + Ruby 2.1)" | ||
} | ||
} | ||
} | ||
}, | ||
"share": { | ||
"@app": false, | ||
"@preview": false, | ||
"@useOwnerSettings": false | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-54.1 KB
Diagrams/SD@CD/sign_in_sign_up_pending_requests_and_approval_sd.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class Evalution < ActiveRecord::Base | ||
belongs_to :user | ||
belongs_to :pitch | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class Pitch < ActiveRecord::Base | ||
has_many :evalutions | ||
def user | ||
return User.find_by_email(self.email) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
member do | ||
get 'evaluateIdeaConsultant' | ||
get 'submitTheForm' | ||
post 'submitTheEvaluation' | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class CreateEvalutions < ActiveRecord::Migration | ||
def change | ||
create_table :evalutions do |t| | ||
t.integer :user_id | ||
t.integer :pitch_id | ||
t.text :comment | ||
|
||
t.timestamps null: false | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html | ||
|
||
one: | ||
refrences: | ||
text: | ||
|
||
two: | ||
refrences: | ||
text: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'test_helper' | ||
|
||
class EvalutionTest < ActiveSupport::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
end |