Added a single Pessoa model with inheriths all the relationships regarding Pessoas Físicas and Pessoas Jurídicas, with a polymorphic association.
Added an Associacao model to make a has_many through self relationship between Pessoas.
Fixed errors in dossie/em_dossie_fields partial.
Added a before_filter in Pessoa Fisica and Pessoa Juridica models to create a Pessoa model when first creating it.
Changed the views and partials for creation of Dossie.
Edited dossies/form partial to show existing em_dossie itens. Also made a destroy_fields_link helper and a destroy_fields javascript function to destroy already created nested resources. Changed the remove_fields_link helper and remove_fields javascript to remove the html from the DOM instead of just hiding it.
Capified project for deployment.
Capified project for deployment.
Added config lines to make Capistrano find the RVM Ruby, Gem and Rake.
Added config lines to make Capistrano find the RVM Ruby, Gem and Rake.
Removed config file for Capistrano find RVM Ruby, Gem and Rake.
Added the Boletim and Material models, controllers and views using scaffold. Made the associations between them and other models.
dados cadastrais
Merge branch 'master' of 192.168.0.241:~/git/appCB
Edited boletim/index view. Added a reject_if proc for Pessoa nested resources in EmDossie model.
Merge branch 'master' of 192.168.0.241:~/git/appCB
Edited boletins/form partial and added a boletins/material_fields for nested form fields for materials inside boletins form.
Added constants in Material model to populate select options. Used grouped_options_for_select for codigo_material.
Merge branch 'master' of 192.168.0.241:~/git/appCB
Added a builder option to link_to_add_fields options.