上一页 1 2 3 4 5 6 ··· 8 下一页

2014年7月3日

Rails redmine upload

摘要: controller def uploadss @attachment = Attachment.new(:file => request.raw_post) @attachment.author = User.current @attachment.filename = params[:filen... 阅读全文

posted @ 2014-07-03 07:37 鱼东鱼 阅读(479) 评论(0) 推荐(0) 编辑

2014年6月29日

rails datagrid easyui

摘要: def new # @foo = Foo.new @foos = Foo.find(:all,:conditions=>["project_id = #{@project.id}"]) @foolist = @foos.map do |f| { :id => f.id... 阅读全文

posted @ 2014-06-29 09:23 鱼东鱼 阅读(256) 评论(0) 推荐(0) 编辑

2014年6月28日

Rails 添加css javascript 结合easyui

摘要: 'redmine_standard' %> 'redmine_standard' %> 'jquery-easyui-1.3.6/themes/default' %> 'jquery-easyui-1.3.6/themes' %> 'jquery-easyui-1.3.6' %> 'jquery-... 阅读全文

posted @ 2014-06-28 18:28 鱼东鱼 阅读(728) 评论(0) 推荐(0) 编辑

rails validates后台验证

摘要: rails内置了很多验证,在提交表单时,可以直接使用rails提供的验证。rails中关于程度和数据库的连接环节是在model里的,在model里使用validates_xxxx_of可以完成常用的验证。常用的有: validates_presence_of 用于验证非空(输入空格也算空); val... 阅读全文

posted @ 2014-06-28 17:51 鱼东鱼 阅读(633) 评论(0) 推荐(0) 编辑

Rails 【labelled_form_for 和 form_for 和 form_tag 的区别】

摘要: {:action=>'create'} do |f| %> 'foos/form',:locals=>{:form=>f} %> 'continue' %>labelled_form_for 和 form_for都是和Model层绑定使用的区别是labelled_form_fo... 阅读全文

posted @ 2014-06-28 17:36 鱼东鱼 阅读(768) 评论(0) 推荐(0) 编辑

rails routes配置

摘要: Rails.application.routes.draw do match 'projects/:id/:controller(/:action(/:id))(.:format)'end 阅读全文

posted @ 2014-06-28 16:30 鱼东鱼 阅读(244) 评论(0) 推荐(0) 编辑

rails [error_messages_for]

摘要: class Foo 255end def create @foo =Foo.new(params[:foo]) @foo.project_id =@project.id if @foo.save flash[:notice] = l(:notice_successfu... 阅读全文

posted @ 2014-06-28 16:28 鱼东鱼 阅读(308) 评论(0) 推荐(0) 编辑

2014年5月21日

aaa

摘要: http://url.cn/MvOVyU 522http://pan.baidu.com/s/1pJ7FYmn 523524530531567571529550532533534535535571 31256547891011912137129765101113121110131431256546... 阅读全文

posted @ 2014-05-21 08:07 鱼东鱼 阅读(263) 评论(0) 推荐(0) 编辑

2014年5月14日

VBA 以文本格式打开DSV

摘要: Public Function GetDataFromDSV(fpath As String) As Collection Dim AllTextFormat(255) As Integer Dim i As Long For i = 0 To 255 AllTextF... 阅读全文

posted @ 2014-05-14 21:08 鱼东鱼 阅读(500) 评论(0) 推荐(0) 编辑

2014年5月4日

VBA 改造msgbox 可以倒计时自动关闭

摘要: 'Download by http://www.NewXing.com'标准模块:Module1.basOption ExplicitPrivate Declare Function timeSetEvent Lib "winmm.dll" (ByVal uDelay As Long, ByVal ... 阅读全文

posted @ 2014-05-04 20:43 鱼东鱼 阅读(4055) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航