snippet
Open2ye
这个作者很懒,什么都没留下…
展开
-
Customize Field Error
# environment.rbActionView::Base.field_error_proc = Proc.new do |html_tag, instance_tag| "#{html_tag}"endResult: <p> <b>Markb><br /> <div class="fieldWithErrors">2007-07-15 15:43:57 · 177 阅读 · 0 评论 -
rails form helper select
<%= select :booking_note, :fee_invoice_send_address, User.find(session[:user_id]).fee_invoice_send_addresses.collect(&:address), {}, {:class => "ext_combobox"} %> <%= select :booking_...2007-07-16 10:26:00 · 156 阅读 · 0 评论 -
Time in Text Field
http://railscasts.com/episodes/32 <!-- tasks/_form.rhtml --><%= f.text_field :due_at %> # models/task.rbdef due_at_string due_at.to_s(:db)enddef due_at_string=(due_at_str) self.d...2007-07-16 11:27:02 · 196 阅读 · 0 评论 -
让 chrome 支持 google bookmarks
1 任意将一个连接拖到 chrome 的 toolbar 上 2 右单击 修改, 将网址改为 [code="javascript"] javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1()...2009-04-24 13:24:58 · 297 阅读 · 0 评论