Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fix: use tempalte lslocation https

  • Loading branch information...
commit c5fd452d1a3a7c9da1948feebb43b5893562ba60 1 parent 8d53ad3
@wongyouth authored
Showing with 31 additions and 1 deletion.
  1. +28 −0 README.md
  2. +3 −1 template.rb
View
28 README.md
@@ -0,0 +1,28 @@
+## A Rails Template with twitter-bootstrap supported
+
+## features included
+
+* twitter-bootstrap-rails
+* slim
+* devise
+* cancan
+* simple_form
+* client_side_validations
+* rails-i18n
+* devise-i18n
+* rspec
+* capybara
+* factory_girl
+* kaminari
+* capistrano
+* better_errors
+* meta_request
+* newrelic_rpm
+* turbo-sprockets-rails3
+* quiet_assets
+
+## Usage
+
+ rails new blog
+ cd blog
+ rake rails:template LOCATION=https://raw.github.com/wongyouth/bootstrap-template/master/template.rb
View
4 template.rb
@@ -1,5 +1,7 @@
def template_file path
- file path, open(File.expand_path("../templates/#{path}", __FILE__)).read
+ template_path = File.expand_path("../templates/#{path}", __FILE__)
+ template_path = template_path.scan(/https:.*/).first if template_path =~ /https:/
+ file path, open(template_path).read
end
# template.rb
Please sign in to comment.
Something went wrong with that request. Please try again.