And for good measure I reloaded Rails/restarted Thin.
When I visit a page that calls the Resource model, I get the following:
undefined method `normalize_attribute' for #<Class:0x007fed6d6a2248>
Am I doing something wrong or is there a bug/compatibility issue with Rails 4.2.1 and Ruby 2.2.2? I wanted to post this here before I went to Stack for answers.
Ok, I restarted my Rails app 3x and now I no longer see the nomethoderror. Will continue testing in development and if I have any problems I'll open a new issue. Sorry for the noise.
I'm running Rails 4.2.1 and Ruby 2.2.2 for a new app. I've added the following to my
Gemfile
gem 'attribute_normalizer', '~> 1.2.0'
I ran
bundle install
to install the gem, then callednormalize_attribute
in myResource
model like so.normalize_attribute :name, :address, :notes, :phone_number, :with => :squish
And for good measure I reloaded Rails/restarted Thin.
When I visit a page that calls the
Resource
model, I get the following:Am I doing something wrong or is there a bug/compatibility issue with Rails 4.2.1 and Ruby 2.2.2? I wanted to post this here before I went to Stack for answers.