Skip to content

Instantly share code, notes, and snippets.

View rafaelrpbelo's full-sized avatar
🏠
Working from home

Rafael Belo rafaelrpbelo

🏠
Working from home
View GitHub Profile
@rafaelrpbelo
rafaelrpbelo / gist:6282105
Created August 20, 2013 14:29
error assets:precompile
servers: ["192.241.189.203"]
Password:
[192.241.189.203] executing command
command finished in 10620ms
* 2013-08-20 11:26:17 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2013-08-20 11:26:17 executing `deploy:assets:symlink'
* executing "rm -rf /var/www/ipcarrier/releases/20130820142600/public/assets && mkdir -p /var/www/ipcarrier/releases/20130820142600/public && mkdir -p /var/www/ipcarrier/shared/assets && ln -s /var/www/ipcarrier/shared/assets /var/www/ipcarrier/releases/20130820142600/public/assets"
servers: ["192.241.189.203"]
[192.241.189.203] executing command
@rafaelrpbelo
rafaelrpbelo / application.rb
Created August 19, 2013 18:12
application.rb
Ipcarrier::Application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
@rafaelrpbelo
rafaelrpbelo / Preferences.sublime-settings
Last active December 19, 2015 20:59
Preferences Sublime Text 2
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"bold_folder_labels": true,
"default_encoding": "UTF-8",
"default_line_ending": "system",
"detect_indentation": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
@rafaelrpbelo
rafaelrpbelo / contact_mailer.rb
Last active December 19, 2015 10:58
undefined method `send_mailer' for ContactMailer:Module Extracted source (around line #10): if @user_mailer.valid? ContactMailer.send_mailer(@user_mailer).deliver redirect_to :root, :notice => "Successfully sent!" else Rails.root: /home/rafael/rafaelbelo/contact_mailer app/controllers/contacts_controller.rb:10:in `mail_contact'
class ContactMailer < ActionMailer::Base
default from: "[email protected]"
def send_mailer(user_mailer)
@user_mailer = user_mailer
mail(to: "[email protected]",
subject: "New Email",
body: "Test Its Works.."
)