Skip to content

Instantly share code, notes, and snippets.

@jparker
Created June 10, 2009 22:58
Show Gist options
  • Save jparker/127562 to your computer and use it in GitHub Desktop.
Save jparker/127562 to your computer and use it in GitHub Desktop.
def payment_sent_on_today
@billable = Billable.new(:payment_sent_on => Date.today)
render :update do |page|
page.replace_html :payment_sent_on,
:inline => "<%= date_select :billable, :payment_sent_on, :include_blank => true %>"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment