#Steps to debug 1.Read the error message multiple times Where do I find the message? Read and Read and Read
2.Google the error message copy and paste to google the error msg
3.User tools Railslogger
| gem "cocoon" | |
| gem 'kaminari' | |
| gem 'bootstrap-kaminari-views' | |
| gem 'cancancan' | |
| gem 'friendly_id', '~> 5.1.0' | |
| gem 'delayed_job_active_record' | |
| gem 'delayed_job_web' | |
| gem 'quiet_assets' | |
| gem 'font-awesome-rails' | |
| gem 'simple_form' |
#Steps to debug 1.Read the error message multiple times Where do I find the message? Read and Read and Read
2.Google the error message copy and paste to google the error msg
3.User tools Railslogger
#Peer review in Git Reset the master in history and make a pull request
look at the code and add comments
git reset example --hard git log git push -f origin master
review and add comments on the code
#What is React.js?
client side With few core concepts you can build a fully functional application
This line of code in campaign model will allow users to feed data about rewards accepts_nested_attributes_for :rewards, reject_if: :all_blank
_form.html.erb
<%= f.simple_fields_ for :rewards do |r| %> <%= r.input :title%> <%= r.input :amount%> <% end %>
bin/rails g controller my_campaigns
resources :my_campaigns, only: [:index]
<%=link_to "My projects", my_campaigns_path%>
before_action :authernticate_user
def index @campaigns = current_user.campaigns
example of fundsy
gem "geocoder"
You have to turn the address into longetude and latitude
rails generate migration AddLatitudeAndLogitudeToModel(name) latitude:float longitude:float
##Active Admin
This will fetch the latest from git
gem 'activeadmin', github: "activeadmin/activeadmin"
active admin depends on gem 'devise'
##Delayed Job/Backgorund Job
1 brew install redis
2 To start the server redis-server
3
draper gem
gem 'draper' in your gemfile
bundle
You generate a decorator for a specific object