当前位置: 首页 > news >正文

知名网站建设定制论坛上怎么做网站优化

知名网站建设定制,论坛上怎么做网站优化,茂名网站建设维护,wordpress 过于肿肿我有一个部分的coaching_notes索引和一个用于创建备注的表单。我想创建一个教练笔记#xff0c;并进行部分更新而不刷新页面。我收到一个未知动作错误#xff1a;CoachingNotesController无法找到show动作。如果我添加显示操作#xff0c;我会收到缺少的模板错误。当我尝试从…我有一个部分的coaching_notes索引和一个用于创建备注的表单。我想创建一个教练笔记并进行部分更新而不刷新页面。我收到一个未知动作错误CoachingNotesController无法找到show动作。如果我添加显示操作我会收到缺少的模板错误。当我尝试从控制器中删除format.html部分时我也遇到了未知格式错误。Ajax和Rails 4创建实例变量并更新视图而不刷新我在Rails文档之后模拟了我的代码并回顾了一堆类似的情况但无法使其工作。任何帮助非常感谢/views/coaching_notes/_index.html.erb/views/coaching_notes/_coaching_note.html.erb/视图/ coaching_notes /创建。 js.erb$().appendTo(#coaching_notes);/controllers/coaching_notes_controller.rbdef createcoaching_note CoachingNote.new(coaching_note_params)respond_to do |format|if coaching_note.saveformat.html { redirect_to coaching_note, notice: note was successfully created. }format.js {}format.json { render json: coaching_note, status: :created, location: coaching_note }elseformat.html { render action: new }format.json { render json: coaching_note.errors, status: :unprocessable_entity }endend的routes.rbresources :coaching_notesUPDATE 17年7月15日 - 我已经根据修改的情侣档 Cira的回答/views/coaching_no TES/_index.html.erb true, :method :delete, :data {:confirm Are you sure?} %// newly added$(#submit_note).on(click, function() {var u $(#user).val()var m $(#meet).val()var a $(#arch).val()var c $(#content).val()$.ajax({url: /coaching_notes/create,type: POST,data: {user_id: u,meeting_id: m,archive: a,content: c},dataType: json,success: function(info) {$(#coaching_notes).data(html, info)}});})(我不知道的主要部分是成功的功能与数据属性)/controllers/coaching_notes_controller.rbdef createcoaching_note CoachingNote.new(coaching_note_params)html render_to_string :partial coaching_notes/indexrespond_to do |format|if coaching_note.saveformat.htmlformat.json { render json: {html html} }elseformat.html { render action: new }format.json { render json: coaching_note.errors, status: :unprocessable_entity }endend两件事 1.我的成功功能在ajax中看起来是否正确 2.我需要将if coaching_note.save放在控制器中吗的错误现在我得到的是“NoMethodError在CoachingNotes创建 - 未定义的方法每次”的零NilClass强调此行/ index.html中然后我得到coaching_notes“失踪模板指导/索引我觉得我们正在接近任何帮助表示赞赏2017-07-14SVC
http://www.yutouwan.com/news/383809/

相关文章:

  • 网站是用什么程序做的湖南做网站 x磐石网络
  • 哪家建网站百度搜索seo优化技巧
  • hqz行情站wordpress如何更新临时域名
  • 做的网站百度搜不到沙田镇做网站
  • 石家庄网站设计建设seo新方法
  • 帮客户做网站内容建设银行网站不能登录不了
  • php 手机网站 模板在拼多多开网店的流程
  • 江苏太仓建设局网站wordpress标签云
  • 菏泽网站建设价位河北省住建厅电子证书查询
  • 宁波网站建设哪里好湛江网站制作
  • 网站的建设周期与阶段网站与网页的区别
  • 彩票网站建设应该要注意哪些wordpress多语言企业网站
  • 佛山市网站建设公司如何用ps做网站首页图片
  • 做网赌网站需要多少钱承德的网站建设公司
  • 有哪些做的比较好的网站装修房子的效果图 三室二厅二卫
  • nodejs做网站容易被攻击吗如何备份网站 整站
  • 延边网站建设网页制作免费教程
  • 沧州泊头纯设计网站制作wordpress 查询语句
  • 重庆装修设计网站网站开发诺亚科技
  • 护栏板销售网站怎么做照明灯企业网站织梦模板
  • 建设手机网站经验分享做衬衫的作业网站
  • 分类网站模板企业网站建设合同(一)
  • 龙岗平湖网站开发做一网站困难吗
  • 拖拽建站系统源码网站建设公司 北京
  • 关于加快信用平台网站建设通知网站建设的基本需求有哪些
  • 网站业务郑州优化网站收费标准
  • 余姚本地网站排名3322做网站
  • 怎么样新建一个网站应用商店关键词优化
  • 网站流量用完wordpress权限不能更新
  • 怎样做php网站腾讯企业邮箱登录登录入口