Skip to content
jaeckel edited this page Sep 13, 2010 · 18 revisions

This is a forked repository. Have a look at
michaeldv’s fat_free_crm wiki
for more information.

  1. ideas
  2. Things to think about
  3. things that should not be forgotten

javascript

  1. writing javascript into haml
  2. automated unit testing link

user interface

  1. easy autocomplete on input fields link
  2. yui-app-theme #1
  3. yui-app-theme #2
  4. yui-app-theme #3
  5. yui components skinning
  6. jstree
  7. datatables component
  8. autocomplete rails plugin

how to create a new module

  1. ruby script/generate model Proposal (singular!!)
  2. ruby script/generate controller Proposals (plural!!)
  3. add tab to new module in config/settings.yml and do rake crm:settings:load
  4. add new module to CommentsController id array (“proposals_id”)
  5. add new module to ActivityObserver observe method call (“Proposal”)
  6. add before_filter and after_filter method calls (see other controllers) to the top of ProposalsController
  7. edit Proposal model class. use other models as template for adding/deleting lines.
  8. edit the migrate file that has been automatically generated ???_create_proposals.rb. add neccessary fields. do the migration with rake db:migrate
  9. copy view files from other module. create simple index.html.haml view file at the beginning and add neccessary stuff in small steps (trial and error..)
  10. add module to map.resources line of config/routes.rb (without doing this the variable new_proposals_path will be undefined..) <- why??
  1. use rake annotate_model to annotate models with current field names and their types (as well as default values) <- VERY NICE!

setup nice rails environment

install and setup hirb

  1. gem install hirb
  2. edit configs/environment/development.rb like https://github.com/vollnhals/fat_free_crm/commit/2123cb8632eaa4de6324f67123f80b4ef0f0fed7
  3. perhaps edit hirb.yml as well
Clone this wiki locally