- watch for ActiveRecord Relation, like
has_many
,has_many :through
- watch for
user_roles
, `group_users - UPDATE
action
- use
https://
- use
subdmoain
- use
different domain
- Add Whitelist
- don't use database attributes for
admin?
- 3rd party is an option
github
- remove
match ':controller(/:action(/:id(.:format)))'
- avoid
match
- watch for
list
,breadcrumb
- break complexy HTML helper to partials
- don't concat HTML in helper
- watch for TinyMCE content
- sanitize the tags
- watch form
search
functions - actions with complex options, ex
[:date]
,[:order]
,[:field]
- actions with complex joins
- avoid
find_by_sql
,count_by_sql
- replace
secret_token.rb
after cloing opensource project - release opensource project, set token in
ENV['SECRET_TOKEN']
- release opensource project, set
.gitignore
tosecret_token.rb
- watch for
EDIT
,UPDATE
,DESTROY
- using scopes filter to filter out illegal access as 404
- use
cancan
to authorize resources
- upgrade Rails version > 3.2.11