README.md in active_leonardo-0.5.0 vs README.md in active_leonardo-0.5.1

- old
+ new

@@ -21,14 +21,21 @@ gem install active_leonardo or - rails new ActiveLeo -m http://dl.dropbox.com/u/52600966/active_template.rb + rails new ActiveLeo -m https://db.tt/gPe6A0l9 -Click [here](http://dl.dropbox.com/u/52600966/active_template.rb) to download the template. +or + click [here](https://dl.dropboxusercontent.com/u/52600966/active_template.rb) to download the template. + +or + + You can also get it from the gem root folder + + ## Usage Once you install the gem, the generators will be available to all Rails applications on your system. To run the generator, go to your rails project directory and type: @@ -42,14 +49,12 @@ ### Step by step 1. Firstly, create layout and initialize your project: - rails new ActiveLeo -m http://dl.dropbox.com/u/52600966/active_template.rb + rails new ActiveLeo -m YOUR_TEMPLATE_PATH (see above: install paragraph) - (You can also find the template into gem root folder) - Answer y to all gems you need. After the questions it will start generations. If it is the first generation there will be a conflict on locales/en.yml, type y to overwrite. Will be: @@ -74,17 +79,19 @@ app\views\application\_session.html.erb You can login as three different profiles loaded with a previous db:seed: - 1. admin@activeleo.com, password: abcd1234 [this profile can do everything] + 1. admin@activeleo.com, password: abcd1234 [this profile can do everything] - 2. manager@activeleo.com, password: abcd1234 [can read, create and update] + 2. manager@activeleo.com, password: abcd1234 [can read, create, update and destroy] - 3. user@activeleo.com, password: abcd1234 [can read, create, update and destroy] + 3. user@activeleo.com, password: abcd1234 [can read, create and update] + There is a fourth profile for _guest_ users who can only see the data. In addition to these you can create all the profiles you need according to cancan rules. + 3. Create your resource: rails g leosca product name:string description:text active:boolean items:integer price:decimal This will act as a normal scaffold and has more new features: @@ -221,22 +228,22 @@ On my [Blog](http://mastrodonato.it/) you can find some other info. ## Found a bug? -If you are having a problem please submit an issue at +Please open an issue on github or ask * m.mastrodonato@gmail.com * marcovlonghitano@gmail.com ## Rails 3.2.x -It works on my system but if you have any troubles you may try 0.1.0 version (tested with activeadmin 0.5.x) +It works ## Rails 3.1.x -Why you should do that? +It should work but has not been tested ## Rails 2 and Rails 3.0.x This Generators does not work with versions earlier 3.1