geemus / acts_as_taggable_redux Goto Github PK
View Code? Open in Web Editor NEWAllows user owned tags for multiple classes, and makes tags easier to work with.
License: MIT License
Allows user owned tags for multiple classes, and makes tags easier to work with.
License: MIT License
At the beginning of the Example section it says:
" may.resource :items, :tags "
Hey,
I know you're not really supporting this anymore, but I've found a really odd bug.
If you try and save a tag in the form of:
"ruby on rails" "acts as taggable redux"
(i.e. - two quoted tags)
It gives me this error:
"You cannot call create unless the parent is saved"
It works fine for other variations of tags though...
Hi there,
I'm a relative RoR noob. It looks like your plugin does exactly what I need, but i'm having real problems figuring out how to use it all properly.
Is there any chance you (or another kind open sourcer) could put together some docs for all of the methods etc, and perhaps a more in depth tutorial?
In your example, your controllers look exactly the same as standard RESTful controllers, except for the :include on the show method. I'm sure it's me being dumb, but I can't figure out when or where the tag even gets saved - it doesn't show up in my log file when I run the actions.
I know I'm not the only person with these problems, so any help will be greatly appreciated.
Thanks for putting it out here in the first place too.
I get the following error when added to my gemfile and running bundle install;
"Could not find gem 'acts_as_taggable_redux (>= 0, runtime)' in any of the gem sources."
And installing from github gives;
"gem install acts_as_taggable_redux --source http://github.com/geemus/acts_as_taggable_redux.git"
ERROR: http://github.com/geemus/acts_as_taggable_redux.git/ does not appear to be a repository
ERROR: Could not find a valid gem 'acts_as_taggable_redux' (>= 0) in any repository
I had to add ' acts_as_taggable' to my item model, which the readme doesn't mention.
With the main tag list retrieved for each item, I'd suggest just ordering by name, not lower(name) + adding the downcase in ruby. Similar with the distinct - we should just call unique from ruby before saving?
SELECT DISTINCT tags.* FROM tags
INNER JOIN taggings
ON tags
.id = taggings
.tag_id WHERE ((taggings
.taggable_id = 1) AND (taggings
.taggable_type = 'Poem')) ORDER BY LOWER(name) asc
I could fork and work on sql optimization if you'd like - I've still never done much github forking contributions, but its time :)
Also, I've added acts_as_tagger to my user model. My poems model belong_to :user. But adding tags to my poem doesn't mark them as being from the user_id - its just null. Any ideas?
INSERT INTO taggings
(tag_id
, taggable_id
, taggable_type
, user_id
) VALUES (7, 1, 'Poem', NULL)
I'm doing this from the rails console, so it could be some weird autoloading stuff I guess.
when running "rake acts_as_taggable:db:create"
I get the following error;
rake aborted!
no such file to load -- rails_generator
I'm using rails 3.0.1
there's a forked version that has it patched already but thougth I'd add an issue
require 'acts_as_tagger_helper' @ acts_as_taggable_redux.rb. else it won't load with an error..
Tag.with_type_scope method is not working with PostgreSQL. there is an error:
PGError: ERROR: column "tags.id" must appear in the GROUP BY clause or be used in an aggregate function : SELECT distinct * FROM "tags" left outer join taggings on taggings.tag_id = tags.id WHERE (taggable_type = E'Amount') GROUP BY name ORDER BY taggings_count DESC LIMIT 100
maybe it is working in MySQL but Postgres is a little bit more strict.
could you fix it somehow?
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.