`
tx984471
  • 浏览: 38741 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

text_field_with_auto_complete哪些注意点

    博客分类:
  • ROR
 
阅读更多
我在应用text_field_with_auto_complete时弹出式窗口就是打不开,
写法是这样的,在view窗口有代码:
<%= text_field_with_auto_complete :lesson, :title,:size=>'12' %>
在对应的controller中写有
    def auto_complete_for_lesson_title
      search = params[:lesson][:title]
      @lessons = Lesson.search(search) unless lesson.blank?
      render :inline => '<%= auto_complete_result @lessons, :title %>'
    end

还有哪个地方缺东西吗?
我看了代码执行过程,代码触发了controller中的auto_complete_for_lesson_title,但就是无法显示!

希望谁给个帮助或分析一下!
分享到:
评论
3 楼 tx984471 2008-08-25  
能否具体点呢?
2 楼 msnvip 2008-08-12  
1. 引入js文件
2. 个别版本router中要设置resource
1 楼 tx984471 2008-06-09  
没有人遇到过吗?
大家有什么解决方案吗?

相关推荐

    FormEditText文本验证提示

    date: checks that the field is a valid date/datetime format ( if customFormat is set, checks with customFormat ) nocheck: It does not check anything except the emptyness of the field. For most of the ...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00475159 (DFCT) - While printing the ldinfo, there are some tabs instead of spaces for indentation so replaced all tabs with spaces. SCGCQ00531245 (ENHREQ) - Display the NCQ enabled/disabled ...

    WPTools.v6.29.1.Pro

    + DeleteField now has optional "Contents" parameter to delete a certain field with contents + the text writer now understand the option -softlinebreaks to create a \n at the end of every line. In ...

    Senfore_DragDrop_v4.1

    Field test 5, released 16-dec-2001 ?1997-2001 Angus Johnson & Anders Melander http://www.melander.dk/delphi/dragdrop/ ------------------------------------------- Table of Contents: ------------------...

    强大的免费的十六进制编辑器

    for complete file and selected block (only if block is currently selected) - Data inspector to view decoded numbers - Built-in script interpreter! Refer to online help for details - Easily works ...

    php.ini-development

    compatibility with older or less security conscience applications. We ; recommending using the production ini in production and testing environments. ; ...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    When returning from ftmPanning mode the complete client area repainting will perform. - ADD: Added TFlexPanel.FrostPanFullDoc property. When true then in ftmPanning mode the whole document image ...

    Solr in Action最新完整版

    matched snippet highlighting, field collapsing and search results grouping, spell checking, query auto-complete, querying by functions, and more. RETAIL SELLING POINTS Clearly-written comprehensive ...

    Solr in Action 英文版完整版

    matched snippet highlighting, field collapsing and search results grouping, spell checking, query auto-complete, querying by functions, and more. RETAIL SELLING POINTS Clearly-written comprehensive ...

    Android代码-TokenAutoComplete

    Planning note If you're already using the library, I'm looking at redesigning some of the core...TokenAutoComplete is an Android Gmail style token auto-complete text field and filter. It's designed to ha

    VB编程资源大全(英文控件)

    that scrolls text&lt;END&gt;&lt;br&gt;81,mtymse.zip This is a control (VB5 with source) that controls every aspect of the mouse&lt;END&gt;&lt;br&gt;82,progbar.zip Uses a picture box to emulate a progress bar&lt;END&gt;&lt;br&gt;83...

    Visual C++ 编程资源大全(英文源码 其它)

    (1KB)&lt;END&gt;&lt;br&gt;66,XTrace_src.zip Extended TRACE macros with easy source navigation(3KB)&lt;END&gt;&lt;br&gt;67,AutoSave.zip Add auto-save feature to Visual Studio 6.0.(41KB)&lt;END&gt;&lt;br&gt;68,acomment.zip This ...

    arcgis工具

    Auto-complete polygon 工具生成共享边的多边形,配合snapping environment更好。 10. 画岛图 1).使用任务栏中的sketch工具,当画完外面的一圈时,右键 选择finish part 然后画中间的部分 再右键finish sketch ...

    LotusDomino学习笔记.doc

    39. Display Rich Text fields in a view 86 40. Auto-Launch a file attachment 87 41. Showing a response count without showing the responses 89 42. 常用的几个按钮收集 91 43. 在WEB上从视图删除文档技巧 93 ...

    LotusDomino学习笔记(400页涵盖代理和公式使用)

    39. Display Rich Text fields in a view 86 40. Auto-Launch a file attachment 87 41. Showing a response count without showing the responses 89 42. 常用的几个按钮收集 91 43. 在WEB上从视图删除文档技巧 93 ...

    Lotus Domino WEB 开发技术积累-DOC(313页)

    39. Display Rich Text fields in a view 86 40. Auto-Launch a file attachment 87 41. Showing a response count without showing the responses 89 42. 常用的几个按钮收集 91 43. 在WEB上从视图删除文档技巧 93 ...

    Lotus Domino WEB详细 学习笔记

    39. Display Rich Text fields in a view 86 40. Auto-Launch a file attachment 87 41. Showing a response count without showing the responses 89 42. 常用的几个按钮收集 91 43. 在WEB上从视图删除...

Global site tag (gtag.js) - Google Analytics