Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc
gem 'devise'
gem 'gravatar-ultimate'

gem 'bootstrap-sass'

group :development do
gem 'pry' #debugger
gem 'spring'
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ GEM
tzinfo (~> 1.1)
arel (5.0.1.20140414130214)
bcrypt (3.1.7)
bootstrap-sass (3.3.1.0)
sass (~> 3.2)
builder (3.2.2)
celluloid (0.16.0)
timers (~> 4.0.0)
Expand Down Expand Up @@ -159,6 +161,7 @@ PLATFORMS
ruby

DEPENDENCIES
bootstrap-sass
coffee-rails (~> 4.0.0)
devise
gravatar-ultimate
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
//
//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
// require turbolinks
//= require_tree .
17 changes: 17 additions & 0 deletions app/assets/stylesheets/bootstrap_customization.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$navbar-default-bg:#e67e22;
$navbar-default-link-color: white;

@import "bootstrap-sprockets";
@import 'bootstrap';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui agregaste los css de bootstrap usando la gema, quedó faltando agregar el javascript de bootstrap también atravez de la gema

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Listo, agregada en el js dentro del los assets de la aplicacion.

Gracais,


.center {
text-align: center;
}

body {
color: black;
}

.navbar-brand {
font-weight: bold;
}
3 changes: 1 addition & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui eliminaste el css y js del CDN lo cual esta muy bien

</head>

Expand Down