Useful command line tools
raw1z / facteur Goto Github PK
View Code? Open in Web Editor NEWMessages managment system for Rails 3
Home Page: http://github.com/raw1z/facteur
License: MIT License
Messages managment system for Rails 3
Home Page: http://github.com/raw1z/facteur
License: MIT License
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
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?
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
: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
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'
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'
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:in
require'
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:in
require'
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:in
require'
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:in
load_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:in
load_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:in
run_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:in
autorun'
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$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.