This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /config/environments/development.rb | |
config.action_mailer.default_url_options = { :host => 'localhost:3000' } | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 } | |
# /config/environments/production.rb | |
config.action_mailer.default_url_options = {:host => 'yourdomain.com'} | |
config.action_mailer.delivery_method = :smtp | |
config.action_mailer.smtp_settings = { | |
:address => "127.0.0.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Devise Configuration | |
devise_for :users | |
devise_scope :user do | |
get "/login", :to => "devise/sessions#new" # Add a custom sign in route for user sign in | |
get "/logout", :to => "devise/sessions#destroy" # Add a custom sing out route for user sign out | |
get "/register", :to => "devise/registrations#new" # Add a Custom Route for Registrations | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqlite3 development.db .dump | psql dbname username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- _ _ | |
| | | | | |
___ ___ | | ___ _ __ _ __ ___ ___ _ __ _ _| |__ _ _ | |
/ __/ _ \| |/ _ \| '__| '_ ` _ \ / _ \ '__| | | | '_ \| | | | | |
| (_| (_) | | (_) | | | | | | | | __/ | | |_| | |_) | |_| | | |
\___\___/|_|\___/|_| |_| |_| |_|\___|_| \__,_|_.__/ \__, | | |
__/ | | |
|___/ | |
A one man web studio dedicated to ruby development |