I've tried to duplicate this problem on my end, and I can't seem to get it to duplicate, meaning it's possibly something unique to your application that may be causing the issue.
I've tried to duplicate this problem on my end, and I can't seem to get it to duplicate, meaning it's possibly something unique to your application that may be causing the issue. You can reference https://github. Com/jaustinhughey/vtest for a working example.
What I find interesting about your problem is this: undefined local variable or method `has_vanity' for # Shouldn't that be "User", not "Class"? Vanities works by pushing up the polymorphic association for an object and a vanity into ActiveRecord as an available method. Then you simply call "has_vanity" to automatically have that polymorphic association available for you.It's a simplistic way to get it in there - only a shortcut, really.
I'm wondering if there's something else "funky" that's being done to/with ActiveRecord in your case. I'm not sure what specifically would cause that, but for some reason that method just plain doesn't exist for a User object in your case.As a work-around, you may try adding the following code in place of the call to "has_vanity": class User :vain # instead of has_vanity has_many :feedbacks_as_poster, :foreign_key => :poster_id, :class_name => 'Feedback' has_many :feedbacks_as_receiver, :foreign_key => :receiver_id, :class_name => 'Feedback' end.
That work around worked beautifully. Out of curiosity, once I go to localhost. Com/test it redirects to localhost.Com/users/1.
Was that the intended behavior, or is something else running amuck? If it is the intended behavior, how do I get it to be a permanent URL (i.e.Localhost.Com/test and stays as that)? Thanks.
– marcamillion Sep 8 at 16:48 Yes, that's the intended behavior. If you want to make it stay /test, you can alter vanities_controller. Rb to render whichever view you want instead of perform a redirect.
– J. Austin Hughey Sep 8 at 23:09 Ahh, interesting...ok, will play around with it. Thanks!
– marcamillion Sep 9 at 3:25.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.