Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Some tags get enclosed in single quotes #19

Open
zooshme opened this issue May 24, 2012 · 3 comments
Open

Some tags get enclosed in single quotes #19

zooshme opened this issue May 24, 2012 · 3 comments

Comments

@zooshme
Copy link

zooshme commented May 24, 2012

Hi I've noticed that some tags get enclosed in single quotes. I couldn't identify a pattern though. Is this a bug that you're aware of or could it be that I'm doing something wrong?

@zooshme
Copy link
Author

zooshme commented May 25, 2012

It seems the last tag in the list that gets enclosed in single quotes.

@vdepizzol
Copy link
Owner

Hey @myresearchstyle. Can you provide a more detailed explanation of this? I couldn't understand what is the issue you are pointing.

Thanks.

@jferrercas
Copy link

Same problem.

Parameters: "tag_list"=>"'Spotify','Mobile'"

ActsAsTaggableOn::Tag Load (1.3ms) SELECT "tags".* FROM "tags" WHERE (name ILIKE 'Spotify' OR name ILIKE '''Mobile''')

INSERT INTO "tags" ("name") VALUES ($1) RETURNING "id" [["name", "'Mobile'"]]

First tag (Spotify) shows ok but second (Mobile) shows 'Mobile'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants