undefined local variable or method `meth_name' for #<CanTango::Ability::Cache::Key:0xb039278>

44 views
Skip to first unread message

Игнат Воробьёв

unread,
Oct 29, 2011, 4:15:54 AM10/29/11
to cantango
1.i`am create small app to demonstrate this problem,could anybody fork
this and help me resolve my problem?
g...@github.com:ignasio/tangodebug.git

2.i have another problem with cantango in block in permit files,we
already discussed it with stanislaw,he still works fine, maybe someone
will try, too?
to understand what works need to run and update the page and if you
refresh the page if not added to the string - you are running
correctly

thanks a lot

Kristian Mandrup

unread,
Oct 29, 2011, 6:08:24 AM10/29/11
to cant...@googlegroups.com
The `meth_name' bug, yes you can just clone the repo and fix the bug. It's just a simple variable naming error inside a small method.
Was this from using the latest gem? Try using an earlier gem version, fx 0.9.2 or use the latest branch - 'permit_cache'.
There has been a lot of development lately and I haven't always had the discipline to run all the tests before releasing… sorry!
I expect to have stabilized all the recent developments by the end of this weekend.

Kris

Kristian Mandrup

unread,
Oct 29, 2011, 6:26:56 AM10/29/11
to cant...@googlegroups.com
You can also Skype me at mainster-dk. 

This works for me:

gem 'cantango', '~> 0.8.9'

class User < ActiveRecord::Base
  tango_user
  
  def roles_list
    [:reader]
  end
  
  def role_groups_list
    []
  end

  def user
    self
  end
end



On Oct 29, 2011, at 10:15 AM, Игнат Воробьёв wrote:

Kristian Mandrup

unread,
Oct 29, 2011, 6:34:11 AM10/29/11
to cant...@googlegroups.com
I just yanked the buggy gem versions and released a new version 0.9.3.2 with the bug fix. It is also noted in the README.

On Oct 29, 2011, at 10:15 AM, Игнат Воробьёв wrote:

Игнат Воробьёв

unread,
Oct 30, 2011, 6:43:31 AM10/30/11
to cant...@googlegroups.com
with this i get error undefined method `options_list' for FooController:Class

2011/10/29 Kristian Mandrup <kman...@gmail.com>:

Kristian Mandrup

unread,
Oct 30, 2011, 7:07:34 AM10/30/11
to cant...@googlegroups.com
I recommend that you use the latest gem 0.9.3.2, or perhaps even the latest master. I've fixed a few bugs/issues since then.
Should be working jut fine now :)

Игнат Воробьёв

unread,
Oct 31, 2011, 2:02:35 AM10/31/11
to cant...@googlegroups.com
no matter how I tried, I still get the error wrong number of arguments (1 for 0)
i pushed my app in current state, in Readme file stacktrace of this error.

30 октября 2011 г. 14:07 пользователь Kristian Mandrup
<kman...@gmail.com> написал:

Kristian Mandrup

unread,
Nov 2, 2011, 5:12:22 AM11/2/11
to cantango
Hi,

I have just pushed some major changes and improvements to the master
branch. Now caching has been redesigned to be much more granular. You
can switch caching on/off on an individual engine level and each
permit type now also has its own cache!
There are many other improvements and bugfixes included so try it out.
I've also taken care to give better support for alternative ORMs in an
extensible/flexible way!
Reply all
Reply to author
Forward
0 new messages