localization_generator 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- 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:
|