Ruby on Rails application with linked Bootstrap.
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
- Ruby on Rails 5
- Bootstrap 5
git clone https://github.com/lapinskap/bootstrap-todo/
cd bootstrap-todo
bundle install
rails s
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
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!
Project is: in progress
My very trivial problems with the bootstrap implementation were the inspiration...
Created by @lapinskap - feel free to contact me!