Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8130263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:38:56+00:00 2026-06-06T08:38:56+00:00

I have a problem that occurs only in a production environment, deployed at heroku.

  • 0

I have a problem that occurs only in a production environment, deployed at heroku.

The Heroku logs says:

[...]
Parameters: {"utf8"=>"✓",
             "authenticity_token"=>"...", 
             "users"=>{"name"=>"name", "email"=>"example@example.com", 
             "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"},
             "commit"=>"Join Us!"}

Processing by UsersController#create as HTML
Rendered notifier/new_user_creation.html.erb (0.7ms)
heroku[router]: POST stark-blabla-345.herokuapp.com/users dyno=web.1 queue=0 wait=0ms
service=333ms status=500 bytes=643
Completed 500 Internal Server Error in 284ms
app[web.1]: Errno::ENOENT (No such file or directory - /assets/):***   
app[web.1]: app/controllers/users_controller.rb:13:in `create

This error happened after adding a Mailer component with these characteristics:

class Notifier < ActionMailer::Base
  default from: "..."

  def new_user_creation(user)
    @user = user
    @url= "http://stark-blabla-345.herokuapp.com/users/
                  #{user.create_digitally_signed_remember_token}/confirm"
    mail to:user.email, subject: 'bla bla, complete the registration process'   

  end

end

with the following templete new_user_creation.html.erb :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title><%=t("confirm_account_creation")%></title>
      <style type="text/css">
          body{ background:#f1f1ee; }
         .title{font-size: 300%; font-family: Georgia, serif; font-weight:bold;}  
         .indented{margin-left:5%; padding:1%;}
      </style>
  </head>

<body>
  <table width="100%" id="background" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td>
        <img src="http://stark-blabla-345.herokuapp.com/assets/
          red_flower-a4105a7cc626711e8789b1c2b21777b6.png"
          align="middle">
        <span class="title"><%=t("base_title")%></span>
      </td>
   </tr>  

   <tr>
     <td>
       <p class="indented"><%=t("confirm_account_creation")%><p>
       <p class="indented"><a href="<%=@url%>">COMPLETE ACCOUNT CREATION PROCESS</a></p>
     </td>
   </tr>


  </table>  

</body>

</html>

UsersController#create():

def create
  @user = User.new(params[:users])
  if @user.save 
    Notifier.new_user_creation(@user).deliver
    flash.now[:block] = t("users.create.created")
    render "confirm_registration"    
  else
    render 'new'
  end     
end

My Gemfile :

source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.6'
gem "heroku"
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'bootstrap-sass'
gem 'jquery-rails'
gem "paperclip", "2.7.0" # :git => "git://github.com/thoughtbot/paperclip.git"
gem 'bcrypt-ruby', '3.0.1'
gem 'nokogiri'
gem 'premailer-rails3'  

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

group :test,:development do
  gem 'sqlite3'
  gem 'rspec-rails','2.9.0'
  gem 'execjs'
  gem 'annotate', '~> 2.4.1.beta'
end

group :test do
  gem 'spork' 
  gem 'cucumber-rails', require:false;
  gem 'capybara'
  gem 'database_cleaner'
  gem 'factory_girl'
  gem "launchy"
end

group :production do
  gem 'pg'
  gem 'thin'
end

The interesting part of production.rb:

MyApp::Application.configure do
  config.action_mailer.default_url_options = 
     { host: "stark-blabla-345.herokuapp.com" }
  config.action_mailer.raise_delivery_errors = false # the same with true 
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.default :charset => "utf-8"

  config.action_mailer.smtp_settings = {
    address: "smtp.gmail.com",
    port: 587,
    domain: "stark-blabla-345.herokuapp.com",
    authentication: "plain",
    enable_starttls_auto: true,
    user_name: ENV["GMAIL_USERNAME"],
    password:  ENV["GMAIL_PASSWORD"]
  }

end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:38:57+00:00Added an answer on June 6, 2026 at 8:38 am

    Are you using the premailer-rails3 gem? I found that version 1.2.0 caused this exact same problem. Downgrading to 1.1.0 fixed it. Hope that helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem that only occurs with users who have just signed up
I have a very complicated problem that occurs only for non-admin windows user. I
I have encountered a most annoying problem that occurs on the PWD variable when
I have a problem that output string must be utf8-formatted, I am writing currently
I have a reoccurring DNS problem that has been plaguing our users, occasionally causing
I have the following, very weird problem with my WPF app in production environment:
I have a problem which occurs only when I use AnySoftKeyboard. I'm trying to
I am developing a Google Maps based site and have a problem that occurs
I have a webpage that plays a 'chime' sound when certain events occur. Problem
In a couple of scripts that I use I have problem that is intermittent.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.