localization_generator 1.0.3 → 1.0.4
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/templates/README +8 -2
- metadata +1 -1
data/templates/README
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
== Installation
|
2
2
|
|
3
|
-
After generating the login system,
|
4
|
-
The beginning of your
|
3
|
+
After generating the login system, edit your app/controllers/application.rb
|
4
|
+
and app/helpers/application_helper.rb files. The beginning of your
|
5
|
+
ApplicationController should look something like this:
|
5
6
|
|
6
7
|
require '<%= singular_name %>'
|
7
8
|
|
8
9
|
class ApplicationController < ActionController::Base
|
9
10
|
include <%= class_name %>
|
10
11
|
|
12
|
+
And your ApplicationHelper module should look like this:
|
13
|
+
|
14
|
+
module ApplicationHelper
|
15
|
+
include <%= class_name %>
|
16
|
+
|
11
17
|
Additionally, you'll need to includes this module as appropriate to use it
|
12
18
|
elsewhere, such as in your views. You also need to add the following at the end
|
13
19
|
of your config/environment.rb file:
|