app/helpers/user_infos_helper.rb
# parameters of popup window to show user_info detail
parameters of popup window to show user_info detail
parameters of popup window to show user_info detail
def user_info_detail_link(user, text = nil, options = {}, html_options = {})
    user?(user) or return "不明"
    text ||= "#{user.real_name}(#{user.name})"    
    html_opt = 
      if registered?
          html_options.merge(:popup => [UserInfo_Popup_Params])
      else
          html_options.merge(:onclick => "alert('ユーザ情報を見ることが出来るのは，ログインを行った登録ユーザのみです（セキュリティ規定参照のこと）');", :href => "#")
      end
    call_for_detail(user, text, options, html_opt)
  end
def user_info_detail_link ( user , text = nil , options = { } , html_options = { } ) user? ( user ) or return "不明" text ||= "#{user.real_name}(#{user.name})" html_opt = if registered? html_options . merge ( :popup => [ UserInfo_Popup_Params ] ) else html_options . merge ( :onclick => "alert('ユーザ情報を見ることが出来るのは，ログインを行った登録ユーザのみです（セキュリティ規定参照のこと）');", :href => "#") end call_for_detail ( user , text , options , html_opt ) end
parameters of popup window to show user_info detail
parameters of popup window to show user_info detail
# popup is one of html options not options as RAIL API describes.
user
<not_specific>
text
<not_specific>
options
<not_specific>
html_options
<not_specific>