Skip to content
Browse files

better error

  • Loading branch information...
1 parent 4d9af90 commit 8d8a9f89e95c6d968ab2552ac3b404c0bb1ae0f6 @barthezslavik committed Dec 22, 2012
View
9 Gemfile
@@ -23,6 +23,15 @@ end
gem 'jquery-rails'
gem "jquery-fileupload-rails"
+gem "rb-readline"
+
+gem "wiselinks"
+
+group :development do
+ gem "better_errors"
+end
+
+gem "binding_of_caller"
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
View
11 Gemfile.lock
@@ -29,7 +29,12 @@ GEM
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
+ better_errors (0.3.2)
+ coderay (>= 1.0.0)
+ erubis (>= 2.7.0)
+ binding_of_caller (0.6.8)
builder (3.0.4)
+ coderay (1.0.8)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -87,6 +92,7 @@ GEM
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
+ rb-readline (0.4.2)
rdoc (3.12)
json (~> 1.4)
sass (3.2.3)
@@ -108,16 +114,21 @@ GEM
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
+ wiselinks (0.2.0)
PLATFORMS
ruby
DEPENDENCIES
+ better_errors
+ binding_of_caller
coffee-rails (~> 3.2.1)
haml-rails
jquery-fileupload-rails
jquery-rails
mysql2
rails (= 3.2.9)
+ rb-readline
sass-rails (~> 3.2.3)
uglifier (>= 1.0.3)
+ wiselinks
View
15 app/assets/javascripts/application.js
@@ -12,15 +12,10 @@
//
//= require jquery
//= require jquery_ujs
+//= require jquery-fileupload/basic
//= require_tree .
+//= require wiselinks
-//= require jquery-fileupload
-//=require jquery-fileupload/vendor/jquery.ui.widget
-//=require jquery-fileupload/vendor/load-image
-//=require jquery-fileupload/vendor/canvas-to-blob
-//=require jquery-fileupload/vendor/tmpl
-//=require jquery-fileupload/jquery.iframe-transport
-//=require jquery-fileupload/jquery.fileupload
-//=require jquery-fileupload/jquery.fileupload-fp
-//=require jquery-fileupload/jquery.fileupload-ui
-//=require jquery-fileupload/locale
+$(document).ready(function() {
+ window.wiselinks = new Wiselinks();
+});
View
5 app/assets/javascripts/samples.js.coffee
@@ -1,3 +1,8 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
+
+#jQuery ->
+# $("#new_image").fileupload
+
+
View
2 config/routes.rb
@@ -51,7 +51,7 @@
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
- root :to => 'index#index'
+ root :to => 'samples#index'
# See how all your routes lay out with "rake routes"
View
5 db/migrate/20121222100226_add_slug_to_samples.rb
@@ -0,0 +1,5 @@
+class AddSlugToSamples < ActiveRecord::Migration
+ def change
+ add_column :samples, :slug, :string
+ end
+end
View
3 db/schema.rb
@@ -11,13 +11,14 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121220145904) do
+ActiveRecord::Schema.define(:version => 20121222100226) do
create_table "samples", :force => true do |t|
t.string "name"
t.text "description"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
+ t.string "slug"
end
end

0 comments on commit 8d8a9f8

Please sign in to comment.
Something went wrong with that request. Please try again.