In my little rails app generator project: https://github.com/dgleba/bashrail there are scripts for this. Even if you don’t use the scripts, they document exactly how to implement it in that case.
Can you download the bashrail project to your PC and follow the instructions in the README.md.
I wonder if you can run it as it is and see if it generates a rails app you can run. Then we can break it down into smaller pieces and try to understand what it is doing.
yeah i see this moment i create a simple web app i use devise and cancancan
but i cant creer a select form to insert role id in the database for using html files devise/registrations.
In your github i dont undertand how to use its when i import then i have many thing aborted
yeah in this i want to know how do to insert a new users using user view or devise and respected role.
in my userscontroller if i put at the top: before_filter :authentificate_user i hav and error saying
the error says no MethodError (undefined method `name' for nil:NilClass):
Exactly. The error says you have tried to call method 'name' on
something that is nil. You are calling method 'name' on self.role (you
have used self.role.name) therefore the error is saying that self.role
is nil.
I may not be answering your question on this one, but I just an admin tool to add a user since the administrator of the system must grant the proper role to the new user.
So, if am using rails_admin with the project, add the user in that tool and assign the appropriate role_id.
The code can also be setup so a user can sign-up them selves and a default role is assigned.
You can also add a user with a tool such as phpmyadmin, pgadmin, sqlite-browser like http://sqlitebrowser.org/.
yeah its great david i havent problem if i had a user in my seed file (for example) and then i need to add new role new user or new item for my html.erb file and i don’t know how i do to link user and item if i add item example.
Second wan’t to know if its possible to use your projet (david ) to verify something for my user role and admin
(need to import new projet and doing test for this)
I see your git i check this 2 item and i import your implementation for testing.
for the first step my friend say me to use this git https://github.com/605data/strongbolt_example and for me i have this information for your git brail.
You suggest me the strong bolt guide or your example.
For the first item 1:
i see the problem was solved. In a simple example if i add user or item or role at the seed.rb file it run normally and me i need to add user or item in the html.erb file?