├── log
├── test.log
├── production.log
└── server.log
├── public
├── favicon.ico
├── .DS_Store
├── alunos.pdf
├── ._.DS_Store
├── images
│ ├── logo.jpg
│ ├── logo.psd
│ ├── .DS_Store
│ ├── ._.DS_Store
│ ├── ._logo.jpg
│ ├── ._logo.psd
│ └── rails.png
├── stylesheets
│ ├── .DS_Store
│ ├── ._.DS_Store
│ ├── ._default.css
│ └── default.css
├── javascripts
│ ├── application.js
│ ├── dragdrop.js
│ └── controls.js
├── robots.txt
├── dispatch.cgi
├── dispatch.rb
├── dispatch.fcgi
├── 422.html
├── 404.html
├── 500.html
└── .htaccess
├── app
├── views
│ ├── pagamentos
│ │ ├── _pagamento.html.erb
│ │ ├── .__agendar.html.erb
│ │ ├── .__pagamento.html.erb
│ │ ├── .__prestacoes.html.erb
│ │ ├── _prestacoes.html.erb
│ │ └── _agendar.html.erb
│ ├── .DS_Store
│ ├── ._.DS_Store
│ ├── home
│ │ ├── .DS_Store
│ │ ├── ._.DS_Store
│ │ ├── .__home.html.erb
│ │ └── _home.html.erb
│ ├── relatorios
│ │ ├── gerar_pdf.html.erb
│ │ ├── ._list.html.erb
│ │ ├── ._alunos.html.erb
│ │ ├── ._gerar_pdf.html.erb
│ │ ├── ._inadimplentes.html.erb
│ │ ├── list.html.erb
│ │ ├── inadimplentes.html.erb
│ │ └── alunos.html.erb
│ ├── layouts
│ │ ├── ._home.rhtml
│ │ └── home.rhtml
│ ├── alunos
│ │ ├── ._edit.html.erb
│ │ ├── ._list.html.erb
│ │ ├── .__form.html.erb
│ │ ├── .__debitos.html.erb
│ │ ├── .__pesquisa.html.erb
│ │ ├── _pesquisa.html.erb
│ │ ├── list.html.erb
│ │ ├── _debitos.html.erb
│ │ ├── edit.html.erb
│ │ └── _form.html.erb
│ ├── cursos
│ │ ├── ._edit.html.erb
│ │ ├── .__form.html.erb
│ │ ├── ._index.html.erb
│ │ ├── edit.html.erb
│ │ ├── _form.html.erb
│ │ └── index.html.erb
│ └── responsavels
│ │ ├── .__form.html.erb
│ │ ├── ._edit.html.erb
│ │ ├── ._list.html.erb
│ │ ├── edit.html.erb
│ │ ├── list.html.erb
│ │ └── _form.html.erb
├── helpers
│ ├── home_helper.rb
│ ├── alunos_helper.rb
│ ├── cursos_helper.rb
│ ├── pagamentos_helper.rb
│ ├── relatorios_helper.rb
│ ├── responsavels_helper.rb
│ ├── ._alunos_helper.rb
│ ├── ._cursos_helper.rb
│ ├── ._home_helper.rb
│ ├── ._application_helper.rb
│ ├── ._pagamentos_helper.rb
│ ├── ._relatorios_helper.rb
│ ├── ._responsavels_helper.rb
│ └── application_helper.rb
├── .DS_Store
├── ._.DS_Store
├── models
│ ├── .DS_Store
│ ├── ._cep.rb
│ ├── ._.DS_Store
│ ├── ._aluno.rb
│ ├── ._curso.rb
│ ├── ._responsavel.rb
│ ├── ._debito_curso.rb
│ ├── ._debito_material.rb
│ ├── debito_curso.rb
│ ├── debito_material.rb
│ ├── curso.rb
│ ├── cep.rb
│ ├── aluno.rb
│ └── responsavel.rb
└── controllers
│ ├── ._application.rb
│ ├── ._home_controller.rb
│ ├── ._alunos_controller.rb
│ ├── ._cursos_controller.rb
│ ├── ._pagamentos_controller.rb
│ ├── ._relatorios_controller.rb
│ ├── ._responsavels_controller.rb
│ ├── home_controller.rb
│ ├── application.rb
│ ├── cursos_controller.rb
│ ├── responsavels_controller.rb
│ ├── relatorios_controller.rb
│ ├── alunos_controller.rb
│ └── pagamentos_controller.rb
├── db
├── .DS_Store
├── ._.DS_Store
├── ._schema.rb
├── migrate
│ ├── .DS_Store
│ ├── ._.DS_Store
│ ├── ._20090226134306_create_ceps.rb
│ ├── ._20090226133526_create_alunos.rb
│ ├── ._20090226134604_create_cursos.rb
│ ├── ._20090226135134_create_responsavels.rb
│ ├── ._20090226135813_create_debito_cursos.rb
│ ├── ._20090226135747_create_debito_materials.rb
│ ├── ._20090226140547_adicionar_chaves_estrangeiras.rb
│ ├── 20090226134604_create_cursos.rb
│ ├── 20090226134306_create_ceps.rb
│ ├── 20090226135813_create_debito_cursos.rb
│ ├── 20090226135747_create_debito_materials.rb
│ ├── 20090226135134_create_responsavels.rb
│ ├── 20090226133526_create_alunos.rb
│ └── 20090226140547_adicionar_chaves_estrangeiras.rb
└── schema.rb
├── config
├── .DS_Store
├── ._.DS_Store
├── ._routes.rb
├── ._database.yml
├── ._environment.rb
├── database.yml
├── initializers
│ ├── mime_types.rb
│ └── inflections.rb
├── environments
│ ├── development.rb
│ ├── production.rb
│ └── test.rb
├── routes.rb
├── boot.rb
└── environment.rb
├── test
├── fixtures
│ ├── ._ceps.yml
│ ├── ._alunos.yml
│ ├── ._cursos.yml
│ ├── ._clausulas.yml
│ ├── ._responsavels.yml
│ ├── ._debito_cursos.yml
│ ├── ._debito_materials.yml
│ ├── alunos.yml
│ ├── ceps.yml
│ ├── cursos.yml
│ ├── clausulas.yml
│ ├── debito_cursos.yml
│ ├── debito_materials.yml
│ └── responsavels.yml
├── unit
│ ├── ._aluno_test.rb
│ ├── ._cep_test.rb
│ ├── ._curso_test.rb
│ ├── ._clausula_test.rb
│ ├── ._debito_curso_test.rb
│ ├── ._responsavel_test.rb
│ ├── ._debito_material_test.rb
│ ├── cep_test.rb
│ ├── aluno_test.rb
│ ├── curso_test.rb
│ ├── clausula_test.rb
│ ├── responsavel_test.rb
│ ├── debito_curso_test.rb
│ └── debito_material_test.rb
├── functional
│ ├── ._aluno_controller_test.rb
│ ├── ._curso_controller_test.rb
│ ├── ._home_controller_test.rb
│ ├── ._pagamentos_controller_test.rb
│ ├── ._relatorio_controller_test.rb
│ ├── ._responsavel_controller_test.rb
│ ├── aluno_controller_test.rb
│ ├── curso_controller_test.rb
│ ├── home_controller_test.rb
│ ├── pagamentos_controller_test.rb
│ ├── relatorio_controller_test.rb
│ └── responsavel_controller_test.rb
└── test_helper.rb
├── script
├── about
├── plugin
├── runner
├── server
├── console
├── destroy
├── generate
├── process
│ ├── reaper
│ ├── spawner
│ └── inspector
└── performance
│ ├── profiler
│ ├── request
│ └── benchmarker
├── doc
└── README_FOR_APP
├── Rakefile
└── README
/log/test.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/log/production.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/log/server.log:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/views/pagamentos/_pagamento.html.erb:
--------------------------------------------------------------------------------
1 | pagamento
--------------------------------------------------------------------------------
/app/helpers/home_helper.rb:
--------------------------------------------------------------------------------
1 | module HomeHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/alunos_helper.rb:
--------------------------------------------------------------------------------
1 | module AlunosHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/cursos_helper.rb:
--------------------------------------------------------------------------------
1 | module CursosHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/pagamentos_helper.rb:
--------------------------------------------------------------------------------
1 | module PagamentosHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/relatorios_helper.rb:
--------------------------------------------------------------------------------
1 | module RelatoriosHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/responsavels_helper.rb:
--------------------------------------------------------------------------------
1 | module ResponsavelsHelper
2 | end
3 |
--------------------------------------------------------------------------------
/db/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/.DS_Store
--------------------------------------------------------------------------------
/app/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/.DS_Store
--------------------------------------------------------------------------------
/app/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/._.DS_Store
--------------------------------------------------------------------------------
/db/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/._.DS_Store
--------------------------------------------------------------------------------
/db/._schema.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/._schema.rb
--------------------------------------------------------------------------------
/config/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/config/.DS_Store
--------------------------------------------------------------------------------
/public/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/.DS_Store
--------------------------------------------------------------------------------
/public/alunos.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/alunos.pdf
--------------------------------------------------------------------------------
/app/models/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/.DS_Store
--------------------------------------------------------------------------------
/app/models/._cep.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._cep.rb
--------------------------------------------------------------------------------
/app/views/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/.DS_Store
--------------------------------------------------------------------------------
/config/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/config/._.DS_Store
--------------------------------------------------------------------------------
/config/._routes.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/config/._routes.rb
--------------------------------------------------------------------------------
/db/migrate/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/.DS_Store
--------------------------------------------------------------------------------
/public/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/._.DS_Store
--------------------------------------------------------------------------------
/app/models/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._.DS_Store
--------------------------------------------------------------------------------
/app/models/._aluno.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._aluno.rb
--------------------------------------------------------------------------------
/app/models/._curso.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._curso.rb
--------------------------------------------------------------------------------
/app/views/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/._.DS_Store
--------------------------------------------------------------------------------
/config/._database.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/config/._database.yml
--------------------------------------------------------------------------------
/db/migrate/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._.DS_Store
--------------------------------------------------------------------------------
/public/images/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/logo.jpg
--------------------------------------------------------------------------------
/public/images/logo.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/logo.psd
--------------------------------------------------------------------------------
/app/views/home/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/home/.DS_Store
--------------------------------------------------------------------------------
/app/views/relatorios/gerar_pdf.html.erb:
--------------------------------------------------------------------------------
1 | O Arquivo foi criado, clique aqui para abri-lo
--------------------------------------------------------------------------------
/config/._environment.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/config/._environment.rb
--------------------------------------------------------------------------------
/public/images/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/.DS_Store
--------------------------------------------------------------------------------
/public/images/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/._.DS_Store
--------------------------------------------------------------------------------
/public/images/._logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/._logo.jpg
--------------------------------------------------------------------------------
/public/images/._logo.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/._logo.psd
--------------------------------------------------------------------------------
/public/images/rails.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/images/rails.png
--------------------------------------------------------------------------------
/test/fixtures/._ceps.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._ceps.yml
--------------------------------------------------------------------------------
/test/unit/._aluno_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._aluno_test.rb
--------------------------------------------------------------------------------
/test/unit/._cep_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._cep_test.rb
--------------------------------------------------------------------------------
/test/unit/._curso_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._curso_test.rb
--------------------------------------------------------------------------------
/app/models/._responsavel.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._responsavel.rb
--------------------------------------------------------------------------------
/app/views/home/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/home/._.DS_Store
--------------------------------------------------------------------------------
/test/fixtures/._alunos.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._alunos.yml
--------------------------------------------------------------------------------
/test/fixtures/._cursos.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._cursos.yml
--------------------------------------------------------------------------------
/app/helpers/._alunos_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._alunos_helper.rb
--------------------------------------------------------------------------------
/app/helpers/._cursos_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._cursos_helper.rb
--------------------------------------------------------------------------------
/app/helpers/._home_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._home_helper.rb
--------------------------------------------------------------------------------
/app/models/._debito_curso.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._debito_curso.rb
--------------------------------------------------------------------------------
/app/views/layouts/._home.rhtml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/layouts/._home.rhtml
--------------------------------------------------------------------------------
/public/stylesheets/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/stylesheets/.DS_Store
--------------------------------------------------------------------------------
/public/stylesheets/._.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/stylesheets/._.DS_Store
--------------------------------------------------------------------------------
/script/about:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/about'
4 |
--------------------------------------------------------------------------------
/script/plugin:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/plugin'
4 |
--------------------------------------------------------------------------------
/script/runner:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/runner'
4 |
--------------------------------------------------------------------------------
/script/server:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/server'
4 |
--------------------------------------------------------------------------------
/test/fixtures/._clausulas.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._clausulas.yml
--------------------------------------------------------------------------------
/test/unit/._clausula_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._clausula_test.rb
--------------------------------------------------------------------------------
/app/controllers/._application.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._application.rb
--------------------------------------------------------------------------------
/app/models/._debito_material.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/models/._debito_material.rb
--------------------------------------------------------------------------------
/app/views/alunos/._edit.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/alunos/._edit.html.erb
--------------------------------------------------------------------------------
/app/views/alunos/._list.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/alunos/._list.html.erb
--------------------------------------------------------------------------------
/app/views/cursos/._edit.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/cursos/._edit.html.erb
--------------------------------------------------------------------------------
/app/views/home/.__home.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/home/.__home.html.erb
--------------------------------------------------------------------------------
/public/stylesheets/._default.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/public/stylesheets/._default.css
--------------------------------------------------------------------------------
/script/console:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/console'
4 |
--------------------------------------------------------------------------------
/script/destroy:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/destroy'
4 |
--------------------------------------------------------------------------------
/script/generate:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../config/boot'
3 | require 'commands/generate'
4 |
--------------------------------------------------------------------------------
/test/fixtures/._responsavels.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._responsavels.yml
--------------------------------------------------------------------------------
/test/unit/._debito_curso_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._debito_curso_test.rb
--------------------------------------------------------------------------------
/test/unit/._responsavel_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._responsavel_test.rb
--------------------------------------------------------------------------------
/app/helpers/._application_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._application_helper.rb
--------------------------------------------------------------------------------
/app/helpers/._pagamentos_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._pagamentos_helper.rb
--------------------------------------------------------------------------------
/app/helpers/._relatorios_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._relatorios_helper.rb
--------------------------------------------------------------------------------
/app/models/debito_curso.rb:
--------------------------------------------------------------------------------
1 | class DebitoCurso < ActiveRecord::Base
2 | belongs_to :aluno
3 | belongs_to :responsavel
4 | end
5 |
--------------------------------------------------------------------------------
/app/views/alunos/.__form.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/alunos/.__form.html.erb
--------------------------------------------------------------------------------
/app/views/cursos/.__form.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/cursos/.__form.html.erb
--------------------------------------------------------------------------------
/app/views/cursos/._index.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/cursos/._index.html.erb
--------------------------------------------------------------------------------
/test/fixtures/._debito_cursos.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._debito_cursos.yml
--------------------------------------------------------------------------------
/test/unit/._debito_material_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/unit/._debito_material_test.rb
--------------------------------------------------------------------------------
/app/controllers/._home_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._home_controller.rb
--------------------------------------------------------------------------------
/app/helpers/._responsavels_helper.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/helpers/._responsavels_helper.rb
--------------------------------------------------------------------------------
/app/views/alunos/.__debitos.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/alunos/.__debitos.html.erb
--------------------------------------------------------------------------------
/app/views/alunos/.__pesquisa.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/alunos/.__pesquisa.html.erb
--------------------------------------------------------------------------------
/app/views/relatorios/._list.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/relatorios/._list.html.erb
--------------------------------------------------------------------------------
/test/fixtures/._debito_materials.yml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/fixtures/._debito_materials.yml
--------------------------------------------------------------------------------
/app/controllers/._alunos_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._alunos_controller.rb
--------------------------------------------------------------------------------
/app/controllers/._cursos_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._cursos_controller.rb
--------------------------------------------------------------------------------
/app/models/debito_material.rb:
--------------------------------------------------------------------------------
1 | class DebitoMaterial < ActiveRecord::Base
2 | belongs_to :aluno
3 | belongs_to :responsavel
4 | end
5 |
--------------------------------------------------------------------------------
/app/views/pagamentos/.__agendar.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/pagamentos/.__agendar.html.erb
--------------------------------------------------------------------------------
/app/views/relatorios/._alunos.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/relatorios/._alunos.html.erb
--------------------------------------------------------------------------------
/app/views/responsavels/.__form.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/responsavels/.__form.html.erb
--------------------------------------------------------------------------------
/app/views/responsavels/._edit.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/responsavels/._edit.html.erb
--------------------------------------------------------------------------------
/app/views/responsavels/._list.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/responsavels/._list.html.erb
--------------------------------------------------------------------------------
/script/process/reaper:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/process/reaper'
4 |
--------------------------------------------------------------------------------
/script/process/spawner:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/process/spawner'
4 |
--------------------------------------------------------------------------------
/app/controllers/._pagamentos_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._pagamentos_controller.rb
--------------------------------------------------------------------------------
/app/controllers/._relatorios_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._relatorios_controller.rb
--------------------------------------------------------------------------------
/app/views/pagamentos/.__pagamento.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/pagamentos/.__pagamento.html.erb
--------------------------------------------------------------------------------
/app/views/relatorios/._gerar_pdf.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/relatorios/._gerar_pdf.html.erb
--------------------------------------------------------------------------------
/db/migrate/._20090226134306_create_ceps.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226134306_create_ceps.rb
--------------------------------------------------------------------------------
/script/process/inspector:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/process/inspector'
4 |
--------------------------------------------------------------------------------
/test/functional/._aluno_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._aluno_controller_test.rb
--------------------------------------------------------------------------------
/test/functional/._curso_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._curso_controller_test.rb
--------------------------------------------------------------------------------
/test/functional/._home_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._home_controller_test.rb
--------------------------------------------------------------------------------
/app/controllers/._responsavels_controller.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/controllers/._responsavels_controller.rb
--------------------------------------------------------------------------------
/app/controllers/home_controller.rb:
--------------------------------------------------------------------------------
1 | class HomeController < ApplicationController
2 | def index
3 | render :partial => "home"
4 | end
5 | end
6 |
--------------------------------------------------------------------------------
/app/views/pagamentos/.__prestacoes.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/pagamentos/.__prestacoes.html.erb
--------------------------------------------------------------------------------
/app/views/relatorios/._inadimplentes.html.erb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/app/views/relatorios/._inadimplentes.html.erb
--------------------------------------------------------------------------------
/db/migrate/._20090226133526_create_alunos.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226133526_create_alunos.rb
--------------------------------------------------------------------------------
/db/migrate/._20090226134604_create_cursos.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226134604_create_cursos.rb
--------------------------------------------------------------------------------
/script/performance/profiler:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/performance/profiler'
4 |
--------------------------------------------------------------------------------
/script/performance/request:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/performance/request'
4 |
--------------------------------------------------------------------------------
/test/functional/._pagamentos_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._pagamentos_controller_test.rb
--------------------------------------------------------------------------------
/test/functional/._relatorio_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._relatorio_controller_test.rb
--------------------------------------------------------------------------------
/app/views/relatorios/list.html.erb:
--------------------------------------------------------------------------------
1 | <%= link_to "Inadimplentes", :action => "inadimplentes"%>
2 | <%= link_to "Alunos por curso", :action => "alunos" %>
--------------------------------------------------------------------------------
/db/migrate/._20090226135134_create_responsavels.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226135134_create_responsavels.rb
--------------------------------------------------------------------------------
/script/performance/benchmarker:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require File.dirname(__FILE__) + '/../../config/boot'
3 | require 'commands/performance/benchmarker'
4 |
--------------------------------------------------------------------------------
/test/functional/._responsavel_controller_test.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/test/functional/._responsavel_controller_test.rb
--------------------------------------------------------------------------------
/db/migrate/._20090226135813_create_debito_cursos.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226135813_create_debito_cursos.rb
--------------------------------------------------------------------------------
/db/migrate/._20090226135747_create_debito_materials.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226135747_create_debito_materials.rb
--------------------------------------------------------------------------------
/test/fixtures/alunos.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/test/fixtures/ceps.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/test/fixtures/cursos.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/db/migrate/._20090226140547_adicionar_chaves_estrangeiras.rb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fcoury/cursoprevestibular/master/db/migrate/._20090226140547_adicionar_chaves_estrangeiras.rb
--------------------------------------------------------------------------------
/test/fixtures/clausulas.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/test/fixtures/debito_cursos.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/test/fixtures/debito_materials.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/test/fixtures/responsavels.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2 |
3 | # one:
4 | # column: value
5 | #
6 | # two:
7 | # column: value
8 |
--------------------------------------------------------------------------------
/public/javascripts/application.js:
--------------------------------------------------------------------------------
1 | // Place your application-specific JavaScript functions and classes here
2 | // This file is automatically included by javascript_include_tag :defaults
3 |
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: mysql
3 | database: gama
4 | host: localhost
5 | encoding: utf8
6 | username: root
7 | password: root
8 | socket: /Applications/MAMP/tmp/mysql/mysql.sock
--------------------------------------------------------------------------------
/test/unit/cep_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class CepTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/unit/aluno_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class AlunoTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/unit/curso_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class CursoTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/doc/README_FOR_APP:
--------------------------------------------------------------------------------
1 | Use this README file to introduce your application and point to useful places in the API for learning more.
2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
3 |
--------------------------------------------------------------------------------
/test/unit/clausula_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class ClausulaTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-Agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/test/unit/responsavel_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class ResponsavelTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/unit/debito_curso_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class DebitoCursoTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/unit/debito_material_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class DebitoMaterialTest < ActiveSupport::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/config/initializers/mime_types.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new mime types for use in respond_to blocks:
4 | # Mime::Type.register "text/richtext", :rtf
5 | # Mime::Type.register_alias "text/html", :iphone
6 |
--------------------------------------------------------------------------------
/test/functional/aluno_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class AlunoControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/functional/curso_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class CursoControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/functional/home_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class HomeControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/app/views/alunos/_pesquisa.html.erb:
--------------------------------------------------------------------------------
1 | <% form_for :pesquisa, @pesquisa, :url => {:action => 'list' } do |u| %>
2 |
3 | Nome do Aluno:
4 | <%= u.text_field "nome", :size => 25 %>
5 | <%= submit_tag "Pesquisar" %>
6 |
7 | <% end -%>
8 |
--------------------------------------------------------------------------------
/test/functional/pagamentos_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class PagamentosControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/functional/relatorio_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class RelatorioControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/test/functional/responsavel_controller_test.rb:
--------------------------------------------------------------------------------
1 | require File.dirname(__FILE__) + '/../test_helper'
2 |
3 | class ResponsavelControllerTest < ActionController::TestCase
4 | # Replace this with your real tests.
5 | def test_truth
6 | assert true
7 | end
8 | end
9 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require(File.join(File.dirname(__FILE__), 'config', 'boot'))
5 |
6 | require 'rake'
7 | require 'rake/testtask'
8 | require 'rake/rdoctask'
9 |
10 | require 'tasks/rails'
11 |
--------------------------------------------------------------------------------
/app/models/curso.rb:
--------------------------------------------------------------------------------
1 | class Curso < ActiveRecord::Base
2 | has_many :alunos
3 | validates_presence_of :nome, :message => "- Voce nao preencheu o campo nome"
4 | validates_presence_of :valor_curso, :message => "- Voce nao preencheu o campo valor do curso"
5 | validates_presence_of :valor_material, :message => "- Voce nao preencheu o campo valor do material"
6 | end
7 |
--------------------------------------------------------------------------------
/app/views/pagamentos/_prestacoes.html.erb:
--------------------------------------------------------------------------------
1 |
2 | Valor Material : <%= number_to_currency(@valor_material, :unit => "R$") %>
3 |
4 | <% @prestacao.each do |p| %>
5 | Valor: <%= number_to_currency(p[:valor_prestacao], :unit => "R$") %>
6 | Data de Vencimento: <%= p[:dia].day %>/<%=p[:dia].month%>/<%=p[:dia].year%>
7 | <% end %>
8 | <%= link_to "Confirmar", :action => "confirmar" %>
--------------------------------------------------------------------------------
/app/views/pagamentos/_agendar.html.erb:
--------------------------------------------------------------------------------
1 | <%= form_remote_tag (:url => {:action => "simula"}, :update => "simulacao") %>
2 | Nº de parcelas: <%= text_field :pagamento, :quantidade, :size => 1 %> |
3 | Dia Vencimento: <%= text_field :pagamento, :dia, :size => 1 %> |
4 | Desconto: R$ <%= text_field :pagamento, :desconto, :size => 3 %>
5 |
6 | <%= submit_tag "Simular" %>
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/config/initializers/inflections.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new inflection rules using the following format
4 | # (all these examples are active by default):
5 | # Inflector.inflections do |inflect|
6 | # inflect.plural /^(ox)$/i, '\1en'
7 | # inflect.singular /^(ox)en/i, '\1'
8 | # inflect.irregular 'person', 'people'
9 | # inflect.uncountable %w( fish sheep )
10 | # end
11 |
--------------------------------------------------------------------------------
/db/migrate/20090226134604_create_cursos.rb:
--------------------------------------------------------------------------------
1 | class CreateCursos < ActiveRecord::Migration
2 | def self.up
3 | create_table :cursos do |t|
4 | t.column :nome, :string, :limit => 30
5 | t.column :valor_curso, :decimal, :precision =>10, :scale =>2
6 | t.column :valor_material, :decimal, :precision =>10, :scale =>2
7 | end
8 | end
9 |
10 | def self.down
11 | drop_table :cursos
12 | end
13 | end
14 |
--------------------------------------------------------------------------------
/app/views/cursos/edit.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 | <%= javascript_include_tag :defaults %>
4 | <%= stylesheet_link_tag 'default' %>
5 |
6 | <% if @curso.new_record? %>Cadastro de cursos <% else %> Editando o curso <%= @curso.nome %> <% end %>
7 |
8 | <%= error_messages_for "curso" %>
9 |
10 |
11 | <%= session[:papeis] %>
12 |
13 | <%= render :partial => 'form' %>
14 |
15 |
16 |
--------------------------------------------------------------------------------
/app/controllers/application.rb:
--------------------------------------------------------------------------------
1 | # Filters added to this controller apply to all controllers in the application.
2 | # Likewise, all the methods added will be available for all controllers.
3 |
4 | class ApplicationController < ActionController::Base
5 | helper :all # include all helpers, all the time
6 |
7 | # See ActionController::RequestForgeryProtection for details
8 | # Uncomment the :secret if you're not using the cookie session store
9 | protect_from_forgery # :secret => '425fc288d452e560de7118e264321ede'
10 | end
11 |
--------------------------------------------------------------------------------
/db/migrate/20090226134306_create_ceps.rb:
--------------------------------------------------------------------------------
1 | class CreateCeps < ActiveRecord::Migration
2 | def self.up
3 | create_table :ceps do |t|
4 | t.column :cep, :integer
5 | t.column :logradouro, :string, :limit => 60
6 | t.column :tipo_logradouro, :string, :limit => 20
7 | t.column :bairro, :string, :limit => 30
8 | t.column :cidade, :string, :limit => 30
9 | t.column :uf, :string, :limit => 2
10 | end
11 | end
12 |
13 | def self.down
14 | drop_table :ceps
15 | end
16 | end
17 |
--------------------------------------------------------------------------------
/db/migrate/20090226135813_create_debito_cursos.rb:
--------------------------------------------------------------------------------
1 | class CreateDebitoCursos < ActiveRecord::Migration
2 | def self.up
3 | create_table :debito_cursos do |t|
4 | t.column :valor, :decimal, :precision =>10, :scale =>2
5 | t.column :data_vencimento, :date
6 | t.column :pago, :boolean
7 | #chave estrangeira
8 | t.column :aluno_id, :integer
9 | t.column :responsavel_id, :integer
10 | end
11 | end
12 |
13 | def self.down
14 | drop_table :debito_cursos
15 | end
16 | end
17 |
--------------------------------------------------------------------------------
/db/migrate/20090226135747_create_debito_materials.rb:
--------------------------------------------------------------------------------
1 | class CreateDebitoMaterials < ActiveRecord::Migration
2 | def self.up
3 | create_table :debito_materials do |t|
4 | t.column :valor, :decimal, :precision =>10, :scale =>2
5 | t.column :data_vencimento, :date
6 | t.column :pago, :boolean
7 | #chave estrangeira
8 | t.column :aluno_id, :integer
9 | t.column :responsavel_id, :integer
10 | end
11 | end
12 |
13 | def self.down
14 | drop_table :debito_materials
15 | end
16 | end
17 |
--------------------------------------------------------------------------------
/app/views/responsavels/edit.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 | <%= javascript_include_tag :defaults %>
4 | <%= stylesheet_link_tag 'default' %>
5 |
6 | <% if @responsavel.new_record? %>Cadastro de responsavel <% else %> Editando o responsavel <%= @responsavel.nome %> <% end %>
7 |
8 |
9 | <%= error_messages_for "responsavel" %>
10 | <%= error_messages_for "cep" %>
11 |
12 |
13 |
14 | <%= render :partial => 'form' %>
15 |
16 |
17 |
--------------------------------------------------------------------------------
/public/dispatch.cgi:
--------------------------------------------------------------------------------
1 | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2 |
3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4 |
5 | # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6 | # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7 | require "dispatcher"
8 |
9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10 | Dispatcher.dispatch
--------------------------------------------------------------------------------
/public/dispatch.rb:
--------------------------------------------------------------------------------
1 | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2 |
3 | require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
4 |
5 | # If you're using RubyGems and mod_ruby, this require should be changed to an absolute path one, like:
6 | # "/usr/local/lib/ruby/gems/1.8/gems/rails-0.8.0/lib/dispatcher" -- otherwise performance is severely impaired
7 | require "dispatcher"
8 |
9 | ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
10 | Dispatcher.dispatch
--------------------------------------------------------------------------------
/app/views/cursos/_form.html.erb:
--------------------------------------------------------------------------------
1 | <% form_for :curso, @curso, :url => {:action => 'edit' } do |u| %>
2 |
3 |
4 | Nome:
5 | <%= u.text_field "nome", :size => 25 %>
6 |
7 |
8 |
9 | Custo do curso:
10 | R$ <%= u.text_field "valor_curso", :size => 15 %>
11 |
12 |
13 |
14 | Custo do material:
15 | R$ <%= u.text_field "valor_material", :size => 15 %>
16 |
17 |
18 | <%= submit_tag "Salvar" %> ou <%= link_to "Cancelar", :action => "list" %>
19 | <% end -%>
20 |
--------------------------------------------------------------------------------
/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | # Methods added to this helper will be available to all templates in the application.
2 | module ApplicationHelper
3 | def error_messages_for(object_name, options = {})
4 | options = options.symbolize_keys
5 | object = instance_variable_get("@#{object_name}")
6 | unless object.errors.empty?
7 | items = []
8 | object.errors.each { |attribute, message| items << content_tag("dd", message) }
9 | content_tag("dl",
10 | content_tag("dt", "") +
11 | items.join(""),
12 | "id" => options[:id] || "error", "class" => options[:class] || "error"
13 | )
14 | end
15 | end
16 |
17 | end
18 |
--------------------------------------------------------------------------------
/app/models/cep.rb:
--------------------------------------------------------------------------------
1 | class Cep < ActiveRecord::Base
2 | has_many :alunos
3 | has_many :responsavels
4 |
5 | validates_presence_of :cep, :message => "- Campo CEP não foi preenchido"
6 | validates_format_of :cep, :with => /\d{8}/, :message => "- Cep não está no formato certo"
7 | validates_presence_of :logradouro, :message => "- Campo logradouro não foi preenchido"
8 | validates_presence_of :tipo_logradouro, :message => "- Campo tipo logradouro não foi selecionado"
9 | validates_presence_of :bairro, :message => "- Campo bairro não foi preenchido"
10 | validates_presence_of :cidade, :message => "- Campo cidade não foi preenchido"
11 | validates_presence_of :uf, :message => "- Campo estado não foi selecionado"
12 | end
13 |
--------------------------------------------------------------------------------
/app/controllers/cursos_controller.rb:
--------------------------------------------------------------------------------
1 | class CursosController < ApplicationController
2 | layout "home"
3 | def index
4 | @cursos = Curso.find :all, :order => "nome"
5 |
6 | end
7 |
8 | def edit
9 | if params[:id]
10 | @curso = Curso.find(params[:id])
11 | modo = 1
12 | else
13 | @curso = Curso.new
14 | end
15 | if request.post?
16 | @curso.attributes = params[:curso]
17 | if @curso.save
18 | flash[:notice] = "Curso salvo com sucesso!"
19 | redirect_to :action => "index"
20 | end
21 | end
22 | end
23 |
24 | def delete
25 | Curso.find(params[:id]).destroy
26 | flash[:notice] = "O curso foi excluído com sucesso!"
27 | redirect_to :action => "list"
28 | end
29 | end
30 |
--------------------------------------------------------------------------------
/app/views/relatorios/inadimplentes.html.erb:
--------------------------------------------------------------------------------
1 | Inadimplentes
2 | <%= stylesheet_link_tag 'default' %>
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | <% @alunos.each do |aluno| %>
14 |
15 | <%= aluno.nome %>
16 | <%= aluno.telefone %>
17 | <%= aluno.celular %>
18 |
19 | <%= link_to "Editar", :action => "edit", :id => aluno %> ou
20 | <%= link_to "Excluir", { :action => "delete", :id => aluno }, :confirm => "Deseja realmente excluir o aluno?" %>
21 |
22 |
23 |
24 | <% end %>
25 |
26 |
27 | <%= link_to "Gerar PDF", :action => "gerar_pdf", :alunos => @alunos, :tipo => "Alunos inadimplentes" %>
--------------------------------------------------------------------------------
/app/views/responsavels/list.html.erb:
--------------------------------------------------------------------------------
1 | Responsaveis
2 | <%= stylesheet_link_tag 'default' %>
3 |
4 | <% if flash[:notice] %>
5 |
6 | <%= flash[:notice] %>
7 | <% end %>
8 |
9 | <%= link_to "Novo Responsavel", :action => "edit" %>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | <% @responsavel.each do |r| %>
20 |
21 | <%= r.nome %>
22 | <%= r.telefone %>
23 | <%= r.celular %>
24 |
25 | <%= link_to "Editar", :action => "edit", :id => r %> ou
26 | <%= link_to "Excluir", { :action => "delete", :id => r }, :confirm => "Deseja realmente excluir o Responsavel?" %>
27 |
28 |
29 |
30 | <% end %>
31 |
32 |
--------------------------------------------------------------------------------
/app/views/cursos/index.html.erb:
--------------------------------------------------------------------------------
1 | Cursos
2 | <%= stylesheet_link_tag 'default' %>
3 |
4 | <% if flash[:notice] %>
5 |
6 | <%= flash[:notice] %>
7 | <% end %>
8 |
9 | <%= link_to "Novo Curso", :action => "edit" %>
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | <% @cursos.each do |curso| %>
20 |
21 | <%= curso.nome %>
22 | <%= curso.valor_curso %>
23 | <%= curso.valor_material %>
24 |
25 | <%= link_to "Editar", :action => "edit", :id => curso %> ou
26 | <%= link_to "Excluir", { :action => "delete", :id => curso }, :confirm => "Deseja realmente excluir o curso?" %>
27 |
28 |
29 |
30 | <% end %>
31 |
32 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | # Settings specified here will take precedence over those in config/environment.rb
2 |
3 | # In the development environment your application's code is reloaded on
4 | # every request. This slows down response time but is perfect for development
5 | # since you don't have to restart the webserver when you make code changes.
6 | config.cache_classes = false
7 |
8 | # Log error messages when you accidentally call methods on nil.
9 | config.whiny_nils = true
10 |
11 | # Show full error reports and disable caching
12 | config.action_controller.consider_all_requests_local = true
13 | config.action_view.debug_rjs = true
14 | config.action_controller.perform_caching = false
15 | config.action_view.cache_template_extensions = false
16 |
17 | # Don't care if the mailer can't send
18 | config.action_mailer.raise_delivery_errors = false
--------------------------------------------------------------------------------
/config/environments/production.rb:
--------------------------------------------------------------------------------
1 | # Settings specified here will take precedence over those in config/environment.rb
2 |
3 | # The production environment is meant for finished, "live" apps.
4 | # Code is not reloaded between requests
5 | config.cache_classes = true
6 |
7 | # Use a different logger for distributed setups
8 | # config.logger = SyslogLogger.new
9 |
10 | # Full error reports are disabled and caching is turned on
11 | config.action_controller.consider_all_requests_local = false
12 | config.action_controller.perform_caching = true
13 | config.action_view.cache_template_loading = true
14 |
15 | # Enable serving of images, stylesheets, and javascripts from an asset server
16 | # config.action_controller.asset_host = "http://assets.example.com"
17 |
18 | # Disable delivery errors, bad email addresses will be ignored
19 | # config.action_mailer.raise_delivery_errors = false
20 |
--------------------------------------------------------------------------------
/app/views/alunos/list.html.erb:
--------------------------------------------------------------------------------
1 | Alunos
2 | <%= stylesheet_link_tag 'default' %>
3 |
4 | <% if flash[:notice] %>
5 |
6 | <%= flash[:notice] %>
7 | <% end %>
8 |
9 | <%= link_to "Novo Aluno", :action => "edit" %> ou
10 | <%= link_to_remote "Pesquisar Aluno", :update => "pesquisa", :url => { :action => "pesquisa"} %>
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | <% @alunos.each do |aluno| %>
23 |
24 | <%= aluno.nome %>
25 | <%= aluno.telefone %>
26 | <%= aluno.celular %>
27 |
28 | <%= link_to "Editar", :action => "edit", :id => aluno %> ou
29 | <%= link_to "Excluir", { :action => "delete", :id => aluno }, :confirm => "Deseja realmente excluir o aluno?" %>
30 |
31 |
32 |
33 | <% end %>
34 |
--------------------------------------------------------------------------------
/db/migrate/20090226135134_create_responsavels.rb:
--------------------------------------------------------------------------------
1 | class CreateResponsavels < ActiveRecord::Migration
2 | def self.up
3 | create_table :responsavels do |t|
4 | t.column :nome, :string, :limit => 30
5 | t.column :estado_civil, :string, :limit => 20
6 | t.column :nome_conjuge, :string, :limit => 12
7 | t.column :filiacao, :string, :limit => 30
8 | t.column :sexo, :string, :limit => 2
9 | t.column :cpf, :integer
10 | t.column :rg, :string, :limit => 20
11 | t.column :data_nascimento, :date
12 | t.column :profissao, :string, :limit => 20
13 | t.column :empresa, :string, :limit => 20
14 | t.column :telefone, :string, :limit => 12
15 | t.column :celular, :string, :limit => 12
16 | t.column :complemento, :string, :limit => 20
17 | #chave estrangeira
18 | t.column :cep_id, :integer
19 | t.column :aluno_id, :integer
20 | end
21 |
22 | end
23 |
24 | def self.down
25 | drop_table :responsavels
26 | end
27 | end
28 |
--------------------------------------------------------------------------------
/public/dispatch.fcgi:
--------------------------------------------------------------------------------
1 | #!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
2 | #
3 | # You may specify the path to the FastCGI crash log (a log of unhandled
4 | # exceptions which forced the FastCGI instance to exit, great for debugging)
5 | # and the number of requests to process before running garbage collection.
6 | #
7 | # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
8 | # and the GC period is nil (turned off). A reasonable number of requests
9 | # could range from 10-100 depending on the memory footprint of your app.
10 | #
11 | # Example:
12 | # # Default log path, normal GC behavior.
13 | # RailsFCGIHandler.process!
14 | #
15 | # # Default log path, 50 requests between GC.
16 | # RailsFCGIHandler.process! nil, 50
17 | #
18 | # # Custom log path, normal GC behavior.
19 | # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
20 | #
21 | require File.dirname(__FILE__) + "/../config/environment"
22 | require 'fcgi_handler'
23 |
24 | RailsFCGIHandler.process!
25 |
--------------------------------------------------------------------------------
/db/migrate/20090226133526_create_alunos.rb:
--------------------------------------------------------------------------------
1 | class CreateAlunos < ActiveRecord::Migration
2 | def self.up
3 | create_table :alunos do |t|
4 | t.column :nome, :string, :limit => 30
5 | t.column :data_nascimento, :date
6 | t.column :sexo, :string, :limit => 2
7 | t.column :cpf, :integer
8 | t.column :rg, :string, :limit => 20
9 | t.column :nome_pai, :string, :limit => 30
10 | t.column :nome_mae, :string, :limit => 30
11 | t.column :telefone, :string, :limit => 12
12 | t.column :celular, :string, :limit => 12
13 | t.column :complemento, :string, :limit => 20
14 | t.column :responsavel, :string, :limit => 1 # S aluno eh o responsavel - N responsavel relacionado a ele
15 | t.column :status, :string, :limit => 8 # ativo e inativo (alunos antigos)
16 | #chave estrangeira
17 | t.column :cep_id, :integer
18 | t.column :curso_id, :integer
19 | end
20 | end
21 |
22 | def self.down
23 | drop_table :alunos
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/public/422.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | The change you wanted was rejected (422)
9 |
21 |
22 |
23 |
24 |
25 |
26 |
The change you wanted was rejected.
27 |
Maybe you tried to change something you didn't have access to.
28 |
29 |
30 |
--------------------------------------------------------------------------------
/public/404.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | The page you were looking for doesn't exist (404)
9 |
21 |
22 |
23 |
24 |
25 |
26 |
The page you were looking for doesn't exist.
27 |
You may have mistyped the address or the page may have moved.
28 |
29 |
30 |
--------------------------------------------------------------------------------
/public/500.html:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 | We're sorry, but something went wrong (500)
9 |
21 |
22 |
23 |
24 |
25 |
26 |
We're sorry, but something went wrong.
27 |
We've been notified about this issue and we'll take a look at it shortly.
28 |
29 |
30 |
--------------------------------------------------------------------------------
/config/environments/test.rb:
--------------------------------------------------------------------------------
1 | # Settings specified here will take precedence over those in config/environment.rb
2 |
3 | # The test environment is used exclusively to run your application's
4 | # test suite. You never need to work with it otherwise. Remember that
5 | # your test database is "scratch space" for the test suite and is wiped
6 | # and recreated between test runs. Don't rely on the data there!
7 | config.cache_classes = true
8 |
9 | # Log error messages when you accidentally call methods on nil.
10 | config.whiny_nils = true
11 |
12 | # Show full error reports and disable caching
13 | config.action_controller.consider_all_requests_local = true
14 | config.action_controller.perform_caching = false
15 |
16 | # Disable request forgery protection in test environment
17 | config.action_controller.allow_forgery_protection = false
18 |
19 | # Tell ActionMailer not to deliver emails to the real world.
20 | # The :test delivery method accumulates sent emails in the
21 | # ActionMailer::Base.deliveries array.
22 | config.action_mailer.delivery_method = :test
23 |
--------------------------------------------------------------------------------
/app/views/home/_home.html.erb:
--------------------------------------------------------------------------------
1 | <%= javascript_include_tag :defaults %>
2 |
3 |
4 |
5 | Gama
6 |
7 |
8 |
9 |
10 |
11 |