How to change the tooltip in rails for has
I wanted to change the text on the tool tip displayed in UI for Add new User created through rails_admin and device gems.
I have created a sample application called post which shows basic CRUD operations in rails. To this, I have created a admin panel using rails_admin.
I have two models Post.rb and User.rb
Post.rb:
class Post < ActiveRecord::Base
belongs_to :user end
User.rb:
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable
has_many :post
end
When I declare this "belongs_to" and "has_many" association between User and Post model a multiselect is created automatically in "add new" tab of User in admin panel. And when i hover the content of Multiselect it gives default tooltip the content itself. I have used rails_admin gem to create admin panel. Now my problem is I want to change this default tooltip content. I want to dynamically show tooltip from post table on multiselect when we hover its content . How can I do that ?? or can I do that??
链接地址: http://www.djcxy.com/p/67062.html上一篇: 管理员如何只显示当前
下一篇: 如何更改轨道中的工具提示has