Rails插件安装、使用(1)——calendar_date_select

来源:互联网 发布:mysql full out join 编辑:程序博客网 时间:2024/06/03 00:36

  1. Install the calendar_date_select gem
      gem install calendar_date_select
  2. Add a gem dependency to your rails project (in environment.rb)
      config.gem "calendar_date_select"
  3. Then, restart/start your rails project. All necessary files will be copied to your public folder.
  4. Now include this at the top of your layout: (you'll also need to include prototype, if you haven't already!)
    <%= calendar_date_select_includes "red" # or "blue", or "silver", or nil for the default! %># (if you want more control, you can get a list of stylesheets / javascripts via calendar_date_select_javascripts and calendar_date_select_stylesheets)
	
				
		
原创粉丝点击