tft_rails_dbc 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md
CHANGED
@@ -17,10 +17,14 @@ Installation and Use
|
|
17
17
|
To use, create a fresh Rails 3 project:
|
18
18
|
|
19
19
|
rails new sample_app
|
20
|
+
|
21
|
+
Setup RVM to use 1.9.3 preview 0 (there are issues with running preview 1 and factory girl)
|
22
|
+
|
23
|
+
rvm use 1.9.3-p0@sample_app
|
20
24
|
|
21
25
|
Add this gem to `Gemfile`:
|
22
26
|
|
23
|
-
gem 'tft_rails_dbc'
|
27
|
+
gem 'tft_rails_dbc', "~> 0.1.3"
|
24
28
|
|
25
29
|
Run the first generator:
|
26
30
|
|
@@ -50,12 +54,12 @@ Then continue to the next chapters...
|
|
50
54
|
rails generate chapter08_09:solutions
|
51
55
|
rails generate chapter10:begin
|
52
56
|
rails generate chapter10:solutions
|
53
|
-
rails generate
|
54
|
-
rails generate
|
55
|
-
rails generate
|
56
|
-
rails generate
|
57
|
-
rails generate
|
58
|
-
rails generate
|
57
|
+
rails generate chapter11_1:begin
|
58
|
+
rails generate chapter11_1:solutions
|
59
|
+
rails generate chapter11_2:begin
|
60
|
+
rails generate chapter11_2:solutions
|
61
|
+
rails generate chapter11_3:begin
|
62
|
+
rails generate chapter11_3:solutions
|
59
63
|
|
60
64
|
Note that chapters are not exactly sequential. This is because some chapters in RailsTutorial have been skipped due to
|
61
65
|
the adaptations, see below.
|
@@ -32,7 +32,7 @@ en:
|
|
32
32
|
confirmed: 'Your account was successfully confirmed. You are now signed in.'
|
33
33
|
registrations:
|
34
34
|
signed_up: 'Welcome! You have signed up successfully.'
|
35
|
-
|
35
|
+
signed_up_but_REASON: 'You have signed up successfully. However, we could not sign you in because your account is %{reason}.'
|
36
36
|
updated: 'You updated your account successfully.'
|
37
37
|
destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
|
38
38
|
unlocks:
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<%= Rails.application.class.parent_name %>::Application.routes.draw do
|
2
|
-
|
2
|
+
|
3
|
+
devise_for :users, :path_prefix => 'd'
|
4
|
+
devise_scope :user do
|
3
5
|
# Aliased routes to match Rails Tutorial
|
4
6
|
get 'signin', :to => 'devise/sessions#new'
|
5
7
|
get 'signout', :to => 'devise/sessions#destroy'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tft_rails_dbc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-28 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdiscount
|
16
|
-
requirement: &
|
16
|
+
requirement: &2169573620 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.6.8
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2169573620
|
25
25
|
description: TFT Rails is a framework for learning Rails, providing incremental sets
|
26
26
|
of specs and solutions, building up a microblogging application based on RailsTutorial
|
27
27
|
by Michael Hartl. See README for installation & use.
|