Giter Site home page Giter Site logo

facteur's Introduction

raw1z

Useful command line tools

facteur's People

Contributors

raw1z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facteur's Issues

relation "messages_addressees" does not exist

There seems to be an issue when I attempt to send a message, the message does get sent but I get the PG error:

 INSERT INTO "messages" ("author_id", "body", "created_at", "deleted_by_addressee", "deleted_by_addressee_at", "deleted_by_author", "deleted_by_author_at", "mailbox_id", "read", "subject", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id"  [["author_id", 32], ["body", "hello"], ["created_at", Thu, 19 Jul 2012 14:42:56 CDT -05:00], ["deleted_by_addressee", false], ["deleted_by_addressee_at", nil], ["deleted_by_author", false], ["deleted_by_author_at", nil], ["mailbox_id", 2], ["read", false], ["subject", nil], ["updated_at", Thu, 19 Jul 2012 14:42:56 CDT -05:00]]
PGError: ERROR:  relation "messages_addressees" does not exist
:           SELECT DISTINCT(attr.attname)
          FROM pg_attribute attr
          INNER JOIN pg_depend dep ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid
          INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1]
          WHERE cons.contype = 'p'
            AND dep.refobjid = $1::regclass

Missing field created_at?

As per the doc, the message object should contain a field called 'created_at' but I don't see it in the db. Did I miss something?

Message Status: read or unread?

I think it is necessary to add message status, read or unread, to this great gem. So it is easier for users to know how many unread emails in their mailbox.

B.R.
Regdog

where to define attr_accessible

:name attribute for mailbox model is not attr_accessible
working from the console it raises a MassAssignmentSecurityError

essentially following the example in the README

I've tried defining a mailbox model, inheriting from active model, but doesnt work, where do I define attri_accessible

rake rspec does not run

using ree 1.8.7 , mac os x 10.6.

also cant run the generators in a rails 3 project

Patrick-de-Lanauzes-MacBook-Pro:facteur pat$ rake spec
(in /Users/pat/Documents/Projects/ruby/facteur)


DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.

/Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rake-0.8.7/lib/rake.rb:2383:in `load'

  • Rspec is deprecated.
  • RSpec is the new top-level module in RSpec-2

DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.

/Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rake-0.8.7/lib/rake.rb:2383:in `load'

  • Rspec is deprecated.
  • RSpec is the new top-level module in RSpec-2

All dependencies seem to be installed.
/Users/pat/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -S rspec ./spec/facteur_spec.rb
/Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/dr_nic_magic_models-0.9.2/lib/rails.rb:3: uninitialized constant Dependencies::RAILS_ROOT (NameError)
from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:inrequire'
from /Users/pat/Documents/Projects/ruby/facteur/spec/../lib/facteur.rb:4
from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /Users/pat/Documents/Projects/ruby/facteur/spec/spec_helper.rb:7
from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /Users/pat/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'
from /Users/pat/Documents/Projects/ruby/facteur/spec/facteur_spec.rb:1
from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in load' from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:inload_spec_files'
from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:in map' from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/configuration.rb:386:inload_spec_files'
from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/command_line.rb:18:in run' from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:55:inrun_in_process'
from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:46:in run' from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/gems/rspec-core-2.5.1/lib/rspec/core/runner.rb:10:inautorun'
from /Users/pat/.rvm/gems/ree-1.8.7-2010.02/bin/rspec:19
rake aborted!
ruby -S rspec ./spec/facteur_spec.rb failed

(See full trace by running task with --trace)
Patrick-de-Lanauzes-MacBook-Pro:facteur pat$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.