Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixing issue using Rails 3.2.6 / ruby 1.9.2p290 and the gem devise 2.1.2 #19

Open
wants to merge 1 commit into from

5 participants

@daveed

Here is the error output when trying to generate a migration to add a string rpx_identifier to the user model:
.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': no such file to load -- devise/schema (LoadError)

As you can see in my commit I had to comment out the code in
.rvm/gems/ruby-1.9.2-p290/gems/devise_rpx_connectable-0.2.2/lib/devise_rpx_connectable/schema.rb
to make it work.

I am using using Rails 3.2.6 / ruby 1.9.2p290 and the gem devise 2.1.2.

@daveed

Also I had the same error when simply trying to start my local thin server.

@neverbendeasy

Am having this problem, too.

@nicolasblanco

OK thanks. Instead of commenting the code, can you just delete this file and edit the readme to tell the user about the changes he has to make to its database schema ? Thanks.

@amritdeep

cannot load such file -- devise/schema

where is this file (devise/schema) located ??????????????????

@amritdeep

i didnot get this "lib/devise_rpx_connectable/schema.rb" file, Where is it located ???

@tardate

Suggest this pull request can be closed - I believe the issue is fixed in master already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 21 additions and 21 deletions.
  1. +21 −21 lib/devise_rpx_connectable/schema.rb
View
42 lib/devise_rpx_connectable/schema.rb
@@ -1,21 +1,21 @@
-# encoding: utf-8
-require 'devise/schema'
-
-module Devise #:nodoc:
- module RpxConnectable #:nodoc:
-
- module Schema
-
- # Database migration schema for RPX.
- #
- def rpx_connectable
- apply_devise_schema ::Devise.rpx_identifier_field, String, :limit => 255
- end
-
- end
- end
-end
-
-Devise::Schema.module_eval do
- include ::Devise::RpxConnectable::Schema
-end
+# # encoding: utf-8
+# require 'devise/schema'
+#
+# module Devise #:nodoc:
+# module RpxConnectable #:nodoc:
+#
+# module Schema
+#
+# # Database migration schema for RPX.
+# #
+# def rpx_connectable
+# apply_devise_schema ::Devise.rpx_identifier_field, String, :limit => 255
+# end
+#
+# end
+# end
+# end
+#
+# Devise::Schema.module_eval do
+# include ::Devise::RpxConnectable::Schema
+# end
Something went wrong with that request. Please try again.