tog / tog
- Source
- Commits
- Network (14)
- Issues (9)
- Downloads (12)
- Wiki (12)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
It would be very nice if we can specify search sources in search form. Indeed, maybe event telling the search controller which template to show after it, so we can have a personalizzed view, altough I'm not sure of this.
We are going to make a test in project clustic and see what happens. I'll post here the commit chnges so you can decide if it makes sense to be in the core or not.
Comments
Please log in to comment. -
Decide a standard way, used by all plugins, to list the activity log in public continuum.
Wish: listing items, clickable, three different views: general (all users), network (my friends/followings), user's activity (activity for a given user)
Comments
-
It would be nice if we have equivalents to:
rake test:benchmark
rake test:functionals
rake test:integration
rake test:plugins
rake test:profile
rake test:recent
rake test:uncommitted
rake test:unitsasociated to tog_plugins, so we can run only recent or unit test for all or only one plugin.
Comments
Please log in to comment. -
I'm trying to search something in a model. The problem is the model, it has a namespace: Oracle::Question and then the searcher give to me the next message:
Missing search template for model oracle/question. Create a search/_oracle/question.html.erb partial in the correct plugin and try again.
but the file will be used like a partial and from this way don't work. I think the solution will be to create the next file:
search/oracle/_question.html.erb for this type of model.Comments
Please log in to comment.I have been trying again and the error is the message not the searcher. If you create:
search/oracle/_question.html.erb the system uses the partial; but the message of the error is incorrect, if it don't find the partial in case of a model with namespace. -
Rake task "tog:plugins:copy_resources" should accept an optional param for copyng resources for a given plugin only, similar to the param for testing.
rake tog:plugins:copy_resources PLUGIN_NAME=tog_conclave
This is needed to avoid prblem overwriting resources that could have changed in the application if a install a new plugin when the application is already created.
Comments
Please log in to comment. -
Following instructions to install tog (linux - gave up on a windows install). rake aborted. "Error installing to-tog: newgem requires RedCloth (=4.1.1, runtime). Manually installed RedCloth gem and install seems to be ok.
I think tog_template.rb at http://tr.im/tog_current needs to be updated to include the RedCloth gem.
Comments
Please log in to comment. -
I'm trying to deploy last "rails hello_tog -m http://tr.im/tog_current" and I get this error :
root@webby2066:/var/heroku/tog# heroku logs
==> log/server_30783_74f1c5b_8fbf_51582.log <== /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17: warning: already initialized constant VERSION==> log/production.log <==
Logfile created on Fri Jul 17 02:38:03 -0700 2009Table 'config' not exists. Just the last effort to create the config table if doesn't exists
Processing HomeController#index (for 109.112.4.196 at 2009-07-17 02:39:29) [GET]
Rendering template within layouts/application
Rendering home/indexActionView::TemplateError (PGError: ERROR: relation "users" does not exist
: SELECT * FROM "users" WHERE (state = E'active') ORDER BY created_at desc LIMIT 16) on line #25 of vendor/plugins/tog_core/app/views/home/index.html.erb: 22:<%= I18n.t("tog_core.views.home.index.featured_users") %>
23:
24:- <%=link_to icon_for_profile(user.profile, 'small'), profile_path(user.profile)%>
25: <% last_users.each do |user|%>
26:
27: <%end %>
28:vendor/plugins/tog_core/app/helpers/users_helper.rb:4:in `last_users' vendor/plugins/tog_core/app/views/home/index.html.erb:25 /home/heroku_rack/lib/static_assets.rb:9:in `call' /home/heroku_rack/lib/last_access.rb:15:in `call' thin (1.0.1) lib/thin/connection.rb:80:in `pre_process' thin (1.0.1) lib/thin/connection.rb:78:in `catch' thin (1.0.1) lib/thin/connection.rb:78:in `pre_process' thin (1.0.1) lib/thin/connection.rb:57:in `process' thin (1.0.1) lib/thin/connection.rb:42:in `receive_data' eventmachine (0.12.6) lib/eventmachine.rb:240:in `run_machine' eventmachine (0.12.6) lib/eventmachine.rb:240:in `run' thin (1.0.1) lib/thin/backends/base.rb:57:in `start' thin (1.0.1) lib/thin/server.rb:150:in `start' thin (1.0.1) lib/thin/controllers/controller.rb:80:in `start' thin (1.0.1) lib/thin/runner.rb:173:in `send' thin (1.0.1) lib/thin/runner.rb:173:in `run_command' thin (1.0.1) lib/thin/runner.rb:139:in `run!' thin (1.0.1) bin/thin:6 /usr/local/bin/thin:19:in `load' /usr/local/bin/thin:19Rendering /disk1/home/slugs/30783_74f1c5b_8fbf/mnt/public/500.html (500 Internal Server Error)
==> log/production.log <==
Logfile created on Fri Jul 17 02:39:30 -0700 2009
==> log/server_30783_74f1c5b_8fbf_30116.log <== /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/vendor/rack-1.0/rack.rb:17: warning: already initialized constant VERSION root@webby2066:/var/heroku/tog#
Comments
Please log in to comment.hops ... sorry for the format,
here will be better: http://gist.github.com/148983 -
(sorry for my english:) Plugin not found
After installation vendor/plugins/tog* are empty, there is a well-known for the current version of the rails issue. Decided to change in the template all lines with 'git://foo.git' to 'http://foo.git/'
Comments
After this rake db:migration
rake aborted!
Plugin 'acts_as_shareable' does not existI add it to the template...
After this...
rake aborted!
/home/archer/rails/stroyka/vendor/plugins/tog_core/app/models/tog/search.rb:52: invalid multibyte char (US-ASCII) /home/archer/rails/stroyka/vendor/plugins/tog_core/app/models/tog/search.rb:49: syntax error, unexpected $end, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END(See full trace by running task with --trace)
After remove warn() and error() all migration succefuly complete... huh
script/server
And I see: incompatible character encodings: ASCII-8BIT and UTF-8Then we have: NoMethodError in HomeController#index
undefined method `^' for "9":String
Add some code to message_verifier.rb fix this trouble:
def secure_compare(a, b) return a == b end def generate_digest(data) require 'openssl' unless defined?(OpenSSL) OpenSSL::HMAC.hexdigest(OpenSSL::Digest::Digest.new(@digest), @secret, data).to_s endThen I have again
Encoding::CompatibilityError in HomeController#index incompatible character encodings: ASCII-8BIT and UTF-8
/usr/lib/ruby/gems/1.9.1/gems/actionpack-2.3.4/lib/action_view/template_error.rbMay be this similar to https://rails.lighthouseapp.com/projects/8994/tickets/2188-i18n-fails-with-multibyte-strings-in-ruby-19-similar-to-2038
Please log in to comment.Sorry, we ere out for a few days. Wow.
Problems with plugins could be related to github migration and DoS attacks,
We haven't check the code with ruby 1.9, we are still in 1.8.*, any chance to use rails 1.8.7?. I'm not sure we can move to 1.9 or have a test env with 1.9 soon :(.
-
public continuum stops working if someone erases the account
3 comments Created 28 days ago by prusnaksuggested fix:
diff --git a/vendor/plugins/tog_core/app/helpers/core_helper.rb b/vendor/plugins/tog_core/app/helpers/core_helper.rb index 20955dc..f618a7c 100644 --- a/vendor/plugins/tog_core/app/helpers/core_helper.rb +++ b/vendor/plugins/tog_core/app/helpers/core_helper.rb @@ -53,6 +53,7 @@ module CoreHelper def public_continuum(size = 40) Activity.find(:all, :limit=> size, :order => " created_at DESC").collect{|a| + next if a.user == nil content_tag :li, :class => "clearfix" + cycle(nil, " pair") do profile = content_tag :div, :class => "image" do link_to icon_for_profile(a.user.profile, 'tiny'), profile_path(a.user.profile)Comments
ummm... the activities related to any item should be removed automatically when you destroy that item:
has_many :activities, :as => :item, :dependent => :destroyHow have you erased that user?
I clicked "destroy my account and all my data" on /member/account (leading to /member/destroy)
Please log in to comment.mysql> select id from users; +----+ | id | +----+ | 1 | | 2 | | 3 | | 4 | +----+ mysql> select distinct user_id from activities; +---------+ | user_id | +---------+ | 1 | | 3 | | 2 | | 4 | | 5 | | 6 | | 7 | | 8 | +---------+



