-
Notifications
You must be signed in to change notification settings - Fork 1
/
notes.txt
63 lines (52 loc) · 1.9 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
****angular research*****
angular session timeout with devise
yo dude. just check if currentuser. duh
orrrr check if promise error status is 401 unauthorized
research rails gems for js libraries
*****Stanford has released a Swift tutorial on iTunes*******
for payments use: https://www.braintreepayments.com/
**** getting bower to work with heroku deploy *****
https://gist.github.com/afeld/5704079
##################################
### Sign up verifications ######
##################################
for account verification, devise has :confirmable option
mess with that later on
##################################
###### Search engine ######
##################################
use :solr, :sphinx for search engine
enabling search with mailboxer
https://github.com/frodefi/rails-messaging#enabling-search
##################################
###### my unix commands ######
##################################
start postgresql:
for c9:
sudo service postgresql start
for local:
./startpg.sh
Rails notes:
commands:
db:
-migrate database to test env
~rake environment RAILS_ENV=test db:migrate
~NO! run rake test:prepare to clone db for test instead of re-migrating schema to test db
~setting up postgres http://blog.willj.net/2011/05/31/setting-up-postgresql-for-ruby-on-rails-development-on-os-x/
~for heroku database migration
~heroku run rake db:reset --remote [remote name]
~heroku run rake db:migrate --remote [remote name]
-use rails console for db test with rollbacks
~rails c --sandbox
rspec:
-initialize with directory and spec_helper.rb
~rspec --init
-gem install rspec-rails to recognize rails models and controllers for test
core rails:
cant use attr_accessor for models or wont save to db
* try using :flash to pass hidden objects to the next control
git:
git push heroku master
removes all local files
git fetch --all
git reset --hard origin/master