Ruby Guides
Adding fields to an object
#structure do
block eg: models/effective/User.rbrails generate migration add_fields_to_users participant:string how_did_you_hear:string
and it will generate the file for you (migrations appear in db/migrate/12345_add_fields_to_users.rb)http://edgeguides.rubyonrails.org/active_record_migrations.html
Adding a View to Prototype
only: [:index]
skip_authorization_check # CanCanCan
to the top of the page to bypass user authorizationAdd a New Page
Adding a Datatable
@datatable = Effective::Datatables::Users.new
= render_datatable(@datatable)
Simple Form
= simple_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
You can also view online:
http://espcn-prototype.herokuapp.com User: espcn Pass: prototype
http://scip-prototype.herokuapp.com/ User: scip Pass: prototype