marcel

Results comments of marcel

@spamdaemon : how did you fix this showstopper?

just tested mongoid(2.4.11), cancan(1.6.7)and accessible_by shouldn't this get the company from the user as a result? ``` ruby [25] pry(main)> ab = Ability.new(a) => #, #BSON::ObjectId('4fd349c3c989690dfc00000e')}, @match_all=false, @subjects=[Company]>], @user= #...

@stephan778 thank you. this worked ``` ruby can [:read, :write], Company, :_id => @user.company_id ```

https://github.com/ryanb/cancan/issues/553

http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html references is a reserved word! thats the problem

could you add ` to the tablenames like in this example? SELECT `tags`.\* FROM `tags` this would work ``` SELECT tags.*, taggings.tags_count AS count FROM `tags` JOIN (SELECT taggings.tag_id, COUNT(taggings.tag_id)...

i think acts_as_taggable_on shouldnt have anything to do with reserved words from some db

looks like its used a lot without the ` (collection.rb) ON #{table_name}.#{primary_key} = # etc.. https://github.com/mbleigh/acts-as-taggable-on/blob/master/lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb http://fily.mindart.de/uploads/picture/avatar/7/acts_as_taggable_on_code.png

thx well i want to be able to save the json to a file beside accessing it live in the controller (zipped, standalone angular application) and as i want to...

same issue with rails 3.0.11 and latest cells version 3.8.2