Note that there are some explanatory texts on larger screens.

plurals
  1. POgem 'paperclip' on heroku
    text
    copied!<p>In my system, I am using paperclip gem for users to upload their preferable pictures as a profile pic. </p> <p>In the local, users can save new picture when changing profile pic. In the remote, of course, they can(I have no idea how paperclip system saves these files.). But when I do "git push heroku master", heroku logs always show me error messages like </p> <pre><code>"ActionController::RoutingError (No route matches [GET] "/system/members/avatars/000/000/002/thumb/%E5%86%99%E7%9C%9F_(17).JPG"):" </code></pre> <p>And many pictures disappeared although I could see the pic before "git push heroku master".</p> <p>I guess this is because images uploaded by paperclip system may not be put into "app/assets/images" of the rails folders. Could you tell me how to solve this problem?</p> <p>☆_form.html.erb(members)</p> <pre><code> &lt;div class="field"&gt; &lt;%= f.label :'picture' %&gt; &lt;%= f.file_field :avatar %&gt; &lt;/div&gt; &lt;div class="field"&gt; &lt;%= f.label :Email %&gt; &lt;%= f.email_field :mail %&gt; &lt;/div&gt; &lt;div class="actions"&gt; &lt;%= f.submit %&gt; &lt;/div&gt; </code></pre> <p>☆schema.rb</p> <pre><code> create_table "members", :force =&gt; true do |t| t.string "user" t.string "pass" t.string "name" t.string "mail" t.text "memo" t.boolean "admin" t.datetime "created_at", :null =&gt; false t.datetime "updated_at", :null =&gt; false t.string "field" t.string "place" t.string "experience" t.string "url" t.string "provider" t.string "uid" t.string "image" t.string "avatar_file_name" t.string "avatar_content_type" t.integer "avatar_file_size" t.datetime "avatar_updated_at" end </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload