Skip to content

lapinskap/bootstrap-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootstrap-todo

Ruby on Rails application with linked Bootstrap.

Table of contents

General info

General purpose was to add Bootstrap to Ruby on Rails project. It was not as easy as it seems! bootstrap-sass gem was problematic.

Simple "todo" application, without any special features, can be used to test new gems.

I need to implement my own styles alongside bootstrap to make it look like real application

Screenshots

main

sub

Technologies

  • Ruby on Rails 5
  • Bootstrap 5

Setup

git clone https://github.com/lapinskap/bootstrap-todo/
cd bootstrap-todo
bundle install
rails s

Code Examples

POST action in ./app/controllers/todos_controller.rb

  # POST /todos
  # POST /todos.json
  def create
    @todo = Todo.new(todo_params)

    respond_to do |format|
      if @todo.save
        format.html { redirect_to @todo, notice: 'Todo was successfully created.' }
        format.json { render :show, status: :created, location: @todo }
      else
        format.html { render :new }
        format.json { render json: @todo.errors, status: :unprocessable_entity }
      end
    end
  end

Features

List of features ready and TODOs for future development

  • Awesome bootstrap link
  • Awesome jquery link

To-do list:

  • try to use bootstrap-sass gem again!

Status

Project is: in progress

Inspiration

My very trivial problems with the bootstrap implementation were the inspiration...

Contact

Created by @lapinskap - feel free to contact me!

About

"ToDo" Ruby on Rails 5 application with Bootstrap

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published