Skip to content

Instantly share code, notes, and snippets.

View BitPuffin's full-sized avatar
🤡
clowning about

Isak BitPuffin

🤡
clowning about
View GitHub Profile
NoMethodError in Users#new
Showing /home/papi/Dropbox/Frozen melonbox/App/filepile/app/views/users/new.html.erb where line #3 raised:
undefined method `users_path' for #<#<Class:0xb60ffddc>:0xb60fef68>
Extracted source (around line #3):
1: <h1>Sign up!</h1>
2:
3: <%= form_for @user do |f| %>
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
n:/usr/X11R6/bin
<%= form_for @image, :html => {:multipart => true} do |f| %>
<%=f.error_messages%>
<p>
<%= f.label :name %> <br />
<%= f.text_field :name %><br/>
<%= f.label :password%>
<%= f.text_field :password%>
</p>
<p>
<%= f.file_field :image%>
Installing rmagick (2.13.1) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:543:in `build_e
xtensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/usr/bin/ruby1.8 extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
n:/usr/X11R6/bin
NoMethodError in Pages#main
Showing /home/papi/Dropbox/Frozen melonbox/App/FilePile/app/views/pages/main.html.erb where line #8 raised:
undefined method `model_name' for NilClass:Class
Extracted source (around line #8):
5: <div id="not_logged_in">
6: <br />
7: <center><p class="lightgrey_none_large">Choose what file you wish to upload:</p></center>
ActiveRecord::StatementInvalid in PagesController#main
SQLite3::SQLException: no such table: my_files: SELECT "my_files".* FROM "my_files" LIMIT 1
Rails.root: /home/papi/Dropbox/Frozen melonbox/App/FilePile
Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:4
app/controllers/pages_controller.rb:1
Request
papi@icebang:~$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Successfully checked out branch ''
remote: Counting objects: 102, done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 77 (delta 50), reused 0 (delta 0)
Unpacking objects: 100% (77/77), done.
From git://github.com/wayneeseguin/rvm
60ae4a5..a7d0978 master -> origin/master
From git://github.com/wayneeseguin/rvm
* [new tag] 1.6.13 -> 1.6.13
<%= form_for @image, :html => {:multipart => true} do |f| %>
<%= f.error_messages %>
<%= f.file_field :image_file_name %>
<%= f.submit_tag "Upload!", :class => "button large" %>
<% end %>
<!DOCTYPE html>
<html>
<head>
<title>FilePile</title>
<%= javascript_include_tag 'http://code.jquery.com/jquery-latest.pack.js' # includes jquery from their website %>
<%= javascript_include_tag "application"%>
<%= stylesheet_link_tag "application"%>
<%= csrf_meta_tag %>
</head>
<body id="main_body">
<div id="margin">
</div>
<div id="content">
<div id="content_borderfix">
<div id="not_logged_in">
<br />
<center><p class="lightgrey_none_large">Choose what file you wish to upload:</p></center>
<%= form_for @image, :html => { :multipart => true } do |f| %>
<%= f.error_messages %>
<%= f.file_field :image_file_name %><br /><br />