On Wed, Jun 19, 2013 at 08:42:23PM -0700, emc_lab wrote:
> Changed to :
>
> Ruote::Sequel.create_table($sequel, true, 'ruote_docs') unless
> ActiveRecord::Base.connection.table_exists? 'ruote_docs'
>
> Here is another error which is caused by:
>
> m = re_create ? :create_table! : :create_table?
>
>
> in storage.rb.
>
>
> C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruote-sequel-2.3.0/lib/ruote/sequel/storage.rb:46:in
> `create_table': undefined method `create_table!' for nil:NilC
> lass (NoMethodError)
> from
> C:/D/code/rails_proj/ruote_in_rails/config/initializers/ruote.rb:15:in
Hello,
if we look at more of the code (and especially at the line where the error
happens, not at the previous line):
```
def self.create_table(sequel, re_create=false, table_name='documents')
m = re_create ? :create_table! : :create_table?
sequel.send(m, table_name.to_sym) do # <=========== error happens here
# ...
end
# ...
end
```
The error says "undefined method `create_table!' for nil:NilClass
(NoMethodError)".
That means "sequel" is nil.
You are passing nil in $sequel.
Please read error messages it will make you a better programmer.
Best regards,
--
John Mettraux - http://lambda.io/jmettraux
--
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"ruote" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.