I already created App that I would like to add "has_message_generator" into it. an auth plugin "Devise" is already installed,so that I followed these dierection below.
Add this line to my Gemfile and did bundle install gem "has_messages_generators"
Did this command line and it seemed everything's ok! rails g has_messages:install user
But it shows "uninitialized constant User::HasMessages"
error when I access to root page. so I took "include HasMessages"
off from user.rb(in Model directory) and did "bundle exec rake db:migrate"
It seemed it created table successfully.
Then I tried to access to root page, it still shows error "undefined method
inbox' for #"`
Anyone has idea with the installation of this plugin???
You have to install has_messages , too:
… to use this you must include
devise
andhas_messages
in your Gemfile.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.