-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't mass-assign protected attributes: name #4
Comments
I don't want to add
to hashtag.rb unless it is absolutely required. But others managed to get it to work without this line. So i think the problem is my configuration... |
Indeed it's not supposed to be needed. Can you post the concerned controller, model and view, |
OMG, maybe you don't believe it, but you solved my problem. I was just posting all my code into this github window, when i realized a copy/paste error in the form which creates my posts. Without you i have never thought that my problem could lie in the posts view. I was so fixated on my models... Thanks for your time and keep the good work going. Best regards |
I'm getting the same error. Code works fine when I make a post without a hashtag. Here is my controller, model and view:
|
Forgot to mention: please take a look if you have a chance. I really appreciate your help. |
Make sure you have all the files. When I installed the gem a few files were left out like /lib/simple_hashtag/hashtabble.rb. Hope you can fix your error message, because this gem is really great. |
@licatajustin Thanks for the response. Looks like I have all the files. This gem looks like it does exactly what I need for my app, but I'm clueless about that error. Strongly considering going with
but then I'd have to deal with the downcasing. Also, I want to do it the 'right' way... |
I would also be very interested in a solution for this problem. I once "solved" this problem (see above). But a few days ago, it occured again. Dont know whats the reason for this... |
Hi @SqueezedLight, @makoplasty Well, this is a bummer. The main problem I have is I can't replicate. I will try and replicate some more over the week end. @makoplasty, if you add the |
Hi @ralovely I'm going to add you as a private collaborator to the repository. The app is still very much in progress, but it may be helpful for replication. Thank you & have a great weekend, |
+1 on this issue – My setup is nearly identical to @makoplasty's. For the time being, I'll fork a variation with attr_accessible :name – however, would love to see this resolved. |
Facing the same issue |
Hallo,
i installed the gem and included simple_hashtag in my post model.
When i try to create a post (via ajax) i get a mass assignment error while saving.
The exact error message is:
Do you know what i'm doing wrong? I'm really lost here, every hint is appreciated.
Thanks a lot,
Tom
The text was updated successfully, but these errors were encountered: