Every repository with this icon (
Every repository with this icon (
| Description: | Base gem that bootstrap tog platform configuration in a Rails app edit |
-
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
-
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
-
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
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
-
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
-
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
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
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 :(.










