employees#update form won't show up for unauthorized users
Organization model added
Users and organizations will have a many to many relationship
Organizations_users table created
Organizations view added
Organizations#index shows ONLY current_user orgs
Organizations#show works and displays employees
Projecst are now tied to organizations
New projects now require organization
When a new project is created it should be tied to an organization.
Hope this doesn't complicate things too much for users.
Linkified projects organization
Organizations authorization added
Adding a new oganization adds tat current_user to it
Current_user can only asign their orgs to new project
Organizations can be deleted on the #show
Projects#index only shows current_user.organizations projects
Projects only display current_user.projects
Jobs#index only shows current_user.jobs
Employees#index shows only employee.colleagues
This way going to the employees index doesn't show a new guy
every single user in the database. Later I'll add functionality
to show colleagues according to their organization
Simplified showing colleagues
This way I avoid the clunky loop through organizations
and users in those organizations
Employees can now be added to orgs via the form
This took some less than attractive code, but it works.
Just hope it doesn't cause any problems down the line.
I should almost be done with the organizations branch.
I want to clean up the entire app.
Fixed a commenting hiccup in the orgs#show