saucy 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
File without changes
|
@@ -16,7 +16,7 @@ module Saucy
|
|
16
16
|
@project = current_account.projects.build(params[:project])
|
17
17
|
if @project.save
|
18
18
|
flash[:notice] = "Project successfully created"
|
19
|
-
redirect_to
|
19
|
+
redirect_to project_url(@project)
|
20
20
|
else
|
21
21
|
render :action => :new
|
22
22
|
end
|
@@ -36,6 +36,10 @@ module Saucy
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
def show
|
40
|
+
@project = ::Project.find_by_keyword!(params[:id])
|
41
|
+
end
|
42
|
+
|
39
43
|
def destroy
|
40
44
|
@project = ::Project.find_by_keyword!(params[:id])
|
41
45
|
@project.destroy
|
@@ -47,7 +47,7 @@ describe ProjectsController, "create", :as => :account_admin do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "should redirect to the edit page" do
|
50
|
-
should redirect_to(controller.
|
50
|
+
should redirect_to(controller.project_url(assigns(:project)))
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 17
|
10
|
+
version: 0.1.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot, inc.
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-12-
|
20
|
+
date: 2010-12-24 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- app/views/projects/edit.html.erb
|
110
110
|
- app/views/projects/index.html.erb
|
111
111
|
- app/views/projects/new.html.erb
|
112
|
+
- app/views/projects/show.html.erb
|
112
113
|
- app/views/shared/_saucy_javascript.html.erb
|
113
114
|
- lib/generators/saucy/base.rb
|
114
115
|
- lib/generators/saucy/features/features_generator.rb
|