Skip to content

Instantly share code, notes, and snippets.

@Virksaabnavjot
Created July 23, 2017 13:48
Show Gist options
  • Save Virksaabnavjot/4e87620b389039e020b46d34cf0507cf to your computer and use it in GitHub Desktop.
Save Virksaabnavjot/4e87620b389039e020b46d34cf0507cf to your computer and use it in GitHub Desktop.
Useful resources
Ruby on Rails Tutorial: Developing a Demonstration Application
https://www.youtube.com/watch?v=7Vj0u_q-iEw
@Virksaabnavjot
Copy link
Author

Virksaabnavjot commented Jul 24, 2017

root 'pats#new'

@Virksaabnavjot
Copy link
Author

Virksaabnavjot commented Jul 24, 2017

Devise Steps
Open the �le development.rb from the con�g ! environments
config.action_mailer.default_url_options = { host: ENV['IP'],
port: ENV['PORT'] }

@Virksaabnavjot
Copy link
Author

doctors profile

rails g scaffold doctor firstname:string lastname:string address:string user:references phone:string

@Virksaabnavjot
Copy link
Author

@Virksaabnavjot
Copy link
Author

SQLite

log in by hitting rails dbconsole

.tables

PRAGMA table_info(doctors);

@Virksaabnavjot
Copy link
Author

Virksaabnavjot commented Jul 26, 2017

generating scaffold for the decorator

rails g scaffold Transfer firstname:string lastname:string firm:string cost:decimal detail:string age:integer

@Virksaabnavjot
Copy link
Author

for printing functionality

<%= link_to "Print", '#', class: "btn btn-primary", onclick: 'window.print();return false;' %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment