4point's rails4 template, modified from ihower's and other resources.
This repo could not be used NOW, because too many gems did not support rails4 yet.
could not use rails g scaffold
yet, please use:
$ rails g scaffold_controller post title:string content:text
$ rails g model post title:string content:text
add 'resources :posts' to config/routes.rb
This template DISABLE
turbolinks by default. If you want to add it back, please check the following lines on your code:
-
app/assets/javascripts/application.js
//= require turbolinks
-
app/views/layouts/application.html.erb
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
$ rails new YourAppName -m https://raw.github.com/4point/rails4-template/master/frontend.rb
$ rails new YourAppName -m https://raw.github.com/4point/rails4-template/master/backend.rb
and the scaffold command::
$ rails g scaffold post title:string content:text
$ rake db:migrate
(rails new MyBlog -m https://raw.github.com/4point/rails4-template/master/full.rb)
- admin add cancan
- admin add CRUD log
- admin change email and password
- https://github.com/gabetax/twitter-bootstrap-kaminari-views
- https://github.com/ihower/rails4-app-template
- http://twitter.github.com/bootstrap/
- https://github.com/plataformatec/devise
- https://github.com/ernie/ransack
- http://net.tutsplus.com/tutorials/ruby/digging-into-rails-4/
- http://edgeguides.rubyonrails.org/4_0_release_notes.html