No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Arthur Poulet af0bb3e1d5
Improve markdown with code and add Rouge and highlght code
2 years ago
app Improve markdown with code and add Rouge and highlght code 2 years ago
bin Initialize project 2 years ago
config Improve markdown with code and add Rouge and highlght code 2 years ago
db Add subtitle and update layout and css 2 years ago
lib Initialize project 2 years ago
log Initialize project 2 years ago
public Add subtitle and update layout and css 2 years ago
test Update some files for production 2 years ago
tmp Initialize project 2 years ago
vendor/assets Initialize project 2 years ago
.gitignore Improve home index view 2 years ago
Gemfile Improve markdown with code and add Rouge and highlght code 2 years ago
Gemfile.lock Improve markdown with code and add Rouge and highlght code 2 years ago
LICENSE Add LICENSE 2 years ago
README.md Improve short description, add author+date in pandoc 2 years ago
Rakefile Initialize project 2 years ago
blog.yml.sample Add description, keywords, and author meta tags 2 years ago
config.ru Initialize project 2 years ago

README.md

RoR5 Generic Blog

Setup

bundle install

export RAILS_ENV=production
export SECRET_KEY_BASE=your_devise_key

rake db:create db:migrate

cp blog.yml.sample blog.yml
edit blog.yml
echo "User.create email: 'admin@localhost.localdomain', password: 'password'" | rails c

rails server -p 3000

Routes

/read(:format)      # list the 10 last articles with
/read
/read.html
/read.json
/read.rss
/read/:id.(:format) # fetch the complete article (replace :id with an integer)
/read/:id
/read/:id.html
/read/:id.json
/read/:id.tex
/read/:id.pdf
/read/:id.md
/last               # fetch the last published article

Write your blog

In the article, write markdown. You can use “~~~” in order to have a short and long version of the article (the short version is presented in the home index of the article)