百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

railStrap

> 后端框架
开源

RailStrap 是一个基于 HTML5、Ruby On Rails 4、Ruby 2.0.0 的 Bootstrap 库

358 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

RailStrap 是一个基于 HTML5、Ruby On Rails 4、Ruby 2.0.0 的 Bootstrap 库

RailStrap v4

Demo

RailStrap is a Front-end / Back-end template using HTML5 Boilerplate, Twitter Bootstrap 3, Ruby on Rails (4.0.0) Devise ( Auth ) and Ruby 2.0.0.

Quick start

  • Clone the git repo - git clone https://github.com/hugodias/railStrap.git - or download it

  • Run bundle install

  • Run rake db:migrate

Then run your server

rails s

Check at http://localhost:3000

Requirements

  • Rails 4
  • Ruby 2.0.0
  • Imagemagick (For uploading pictures)
  • Vagrant (Optional)

Features

HTML5 Boilerplate
Twitter Bootstrap 3
HAML Template Engine
Ruby on Rails 4.0.0
  • Devise
  • Paperclip ( User profile picture )

Databases support

  • SQLite (Default)
  • Postgresdb https://github.com/hugodias/railStrap/tree/postgresdb

Best pratices


Change the cookie secret token at config/initializers/secret_token.rb

Be sure to restart your server when you modify this file.

Your secret key for verifying the integrity of signed cookies.

If you change this key, all old signed cookies will become invalid!

Make sure the secret is at least 30 characters and all random,

no regular words or you'll be exposed to dictionary attacks.

RailStrap::Application.config.secret_token = 'YOUR-NEW-TOKEN-HERE'

Thanks pringles for the tip

Vagrant


RailStrap has a Vagrant file to create your own Virtual Machine for development.

To get started you need to have Vagrant and Virtal Box instaled.

After that you just need to start your VM: vagrant up

Bonus

After that you have a Ubuntu server to work, but this server isn't configured to work with rails yet! :( So i'm leaving here one virtual box image with Ruby 2.0.0 (rbenv) and Rails 4 pre-configured.

To install this server just follow this steps:

  • Download the server image here: link
  • Place the image that you downloaded in railStrap repository
  • In railStrap directory run vagrant box add railStrapMachine ubuntuRails4Ruby2.box virtualbox
  • Run vagrant box list and this new machine should be in that list
  • Now in Vagrantfile change config.vm.box="precise32" to config.vm.box="railStrapMachine"
  • To get your machine up run vagrant up

And its done ! Your vagrant vm now has Ruby 2.0.0 and Rails 4 ready to go.


License

Major components:

  • jQuery: MIT/GPL license
  • Modernizr: MIT/BSD license
  • Normalize.css: Public Domain
  • Twitter bootstrap: Apache License, Version 2.0 (the "License")
  • Ruby on Rails: MIT license

Everything else:

The Unlicense (aka: public domain)

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyrailsrubytwitter-bootstrap

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架