Skip to content

g-mac/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README (Simon)

requirements:

install mailcatcher to catch mails on developement:

  1. $ gem install mailcatcher

  2. $ mailcatcher

  3. go to localhost:1080 to view caught email in browser

Heroku creation:

$ heroku login ([email protected])

$ heroku create

$ heroku git push heroku master

$ heroku run rake db:create db:migrate #(had to run this for it to work?)

Heroku deployment:

$ heroku login

$ git push heroku master

$ heroku open

Heroku destroy and recreate db:

heroku addons:destroy heroku-postgresql:hobby-dev heroku addons:create heroku-postgresql:hobby-dev

Local deployment:

$ heroku local

Lessons learned:

DONT FORGET THE DOT!!!!!

if ruby/rails in slim doesnt work it could be because the surrounding htmls tags. e.g.

not working:

form.navbar-form
    = bootstrap_form_for(:user, :url => session_path(:user)) do |f|
      = f.email_field :email, :autofocus => true, :placeholder => 'Email address', hide_label: true
      = f.password_field :password, :placeholder => 'Password', hide_label: true
      = f.submit 'Log in', :class => 'btn btn-primary'

working:

  = bootstrap_form_for(:user, :url => session_path(:user), html: { class: 'navbar-form' }) do |f|
    = f.email_field :email, :autofocus => true, :placeholder => 'Email address', hide_label: true
    = f.password_field :password, :placeholder => 'Password', hide_label: true
    = f.submit 'Log in', :class => 'btn btn-primary'

OR

  .form.navbar-form
      = bootstrap_form_for(:user, :url => session_path(:user)) do |f|
        = f.email_field :email, :autofocus => true, :placeholder => 'Email address', hide_label: true
        = f.password_field :password, :placeholder => 'Password', hide_label: true
        = f.submit 'Log in', :class => 'btn btn-primary'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages