-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running list of errors encountered & their fixes #32
Comments
While adding the paperclip to the user_tutorial page which uses simple form.NoMethodError in Tutorials#user_tutorialsShowing /vagrant/railsgirls-signup/app/views/tutorials/_form.html.erb where line #2 raised: undefined method `model_name' for nil:NilClass
http://stackoverflow.com/questions/11093848/rails-undefined-method-model-name-for-nilclassclass |
Paperclip gemIf you click the upload button without adding a photo you receive this errorActionController::ParameterMissing in TutorialsController#update Extracted source (around line #65):
This is the tutorial object that is missing:"tutorial"=>{"trygit_image"=>#<ActionDispatch::Http::UploadedFile:0x007fdb44656f40 @tempfile=#Tempfile:/tmp/RackMultipart20160817-15847-1bkl554.png, @original_filename="trygit.png", @content_type="image/png", @headers="Content-Disposition: form-data; name="tutorial[trygit_image]"; filename="trygit.png"\r\nContent-Type: image/png\r\n">} Solution:The
|
AbstractController::DoubleRenderError in TutorialsController#update
http://blog.arkency.com/2014/07/4-ways-to-early-return-from-a-rails-controller/ |
Missing ImageSolution:<% if @tutorial.missing_image?(@tutorial.trygit_image).nil? %>
<%= image_tag @tutorial.trygit_image.url(:medium,) %>
<% end %>
tutorial.rbdef missing_image?(image)
image.url.match(/missing.png/)
end trygit_imag is the image object created by imagemagic image.url is the missing png string
|
While installing simple form.
Error
$
rails generate simple_form:install --bootstrap
/home/vagrant/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/configuration.rb:37:in
pwd': No such file or directory - getcwd (Errno::ENOENT)`Fix
http://stackoverflow.com/questions/28390149/rails-generate-error-no-such-file-or-directory-getcwd
$
ps ax | grep spring
I ran $
spring stop
Then it was fixed
The text was updated successfully, but these errors were encountered: