Giter VIP home page Giter VIP logo

acts_as_taggable_redux's People

Contributors

bjeanes avatar geemus avatar jsyrjala avatar maxjustus avatar nagybence avatar pka avatar skwp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

acts_as_taggable_redux's Issues

Typo in README

At the beginning of the Example section it says:

" may.resource :items, :tags "

"You cannot call create unless the parent is saved"

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...

PLEASE update the documentation

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.

how is the gem installed?

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

adding acts_as_taggable to user model, sql opts, and user_id not being set?

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.

PostgreSQL problems

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.