Posts by augustoppimenta • 527 points
15 posts
-
1
votes1
answer193
viewsA: Open dropdown
Add this class (.Stay-open) <ul class="dropdown-menu stay-open"> Then apply in css ! Import .stay-open {display:block !important;}…
-
15
votes1
answer470
viewsQ: How does the geolocation of a device work?
I’ve been doing some research on how to geolocate a device and I found, briefly, these four types: GPS is the most accurate way to determine positioning, but it is actually energy-efficient than…
asked augustoppimenta 527 -
0
votes0
answers210
viewsQ: Spacing with the Menu
I am the following problem: I can’t get that spacing off the menu with Jumbotron. <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div…
-
1
votes2
answers2534
viewsQ: Align Framework Cards Materialize
Just now I decided to take a look at Materialize and tried to use the card element. I just can’t understand why they’re not organized horizontally! <div class="container"> <div…
-
0
votes2
answers152
viewsQ: Chartkick Problem in a Rails Application
I’m trying to implement the Gem Chartkick in a Rails application, but I’m having a small problem. My application has a relationship between two models: class Animal < ActiveRecord::Base…
-
0
votes2
answers148
viewsQ: Code refactoring in C
I was trying today to create a simple program and C with some colleagues and one of the questions was: No else if it would really be necessary to put the validations precoAtual >= 30 and…
-
0
votes1
answer320
viewsA: Devise: Edit account without need to confirm password
I think you can do the following: The method update Users controller could be like this: def update if user_params[:password].blank? @user.update_without_password(user_params_without_password) else…
-
0
votes1
answer93
viewsQ: Abstractcontroller::Actionnotfound for the Destroy action
Hello, I have two applications running on Heroku with the same code, only I’m having a little problem with the producing. When trying to make a request, I have the following log:…
-
3
votes1
answer816
viewsA: Git aborting a checkout
With great help from @rafaels88, we were able to solve: First I made a git checkout .env Afterward git rm .env Finally git commit -m"..."…
-
3
votes1
answer816
viewsQ: Git aborting a checkout
I’m trying to branch out but the git is aborting the operation. I’m in the branch dev trying to get to the branch master : $ git checkout master Error: error: Your local changes to the following…
-
8
votes2
answers11748
viewsQ: How do I get back to the previous commit from a remote branch?
I have an app that has some local and remote branchs, only I had to perform a git reset --hard HEAD~1 in the branchs dev and development(as in the image below), and each of these branchs have remote…
gitasked augustoppimenta 527 -
1
votes1
answer1012
viewsQ: Ruby on Rails - Undefined method `errors' for nil:Nilclass
I have been trying to insert Alert in a form but I have the following error: undefined method 'errors' for nil:NilClass In my form I make a reference to the error: <%= form_for :exercice do…
-
1
votes1
answer796
viewsQ: How to add values from a column in Ruby/Ror
Loveliness? I’m trying to build an application in Rails. In it I have a resource where users inform the running time related to a category. Well, I need to perform adding up the total column time…
-
2
votes3
answers579
viewsQ: Delete . bashrc, . bash_profile and . profile files: what are the consequences?
I’ve been trying to install the Ruby and the Ruby on Rails through the RVM but during the installation process I had some problems. I tried to uninstall the RVM through the commands : rvm implode…
-
1
votes1
answer419
viewsQ: Ruby on Rails: Rake aborted!
I’m starting in the world of Rails through the book Ruby on Rails - Put your web app on track. After creating a module "users" the guide informs us to add in the migration the following command…