Posts by Nando Sousa • 171 points
3 posts
-
1
votes3
answers262
viewsA: How to instantiate a model and get its features by its name in Ruby on Rails
I don’t know if I understand you very well, but I believe this could give you some insight. # app/controlles/users_controller.rb class UsersController < ApplicationController def edit @user =…
-
1
votes1
answer225
viewsA: Automatically bring data with Associations
Next, let’s go by part: Choose to write your code in English as you will face design problems. For example: the model Distributor plural will look like this: Distribuidors. Which will make you write…
ruby-on-railsanswered Nando Sousa 171 -
2
votes1
answer99
viewsA: Problem with Ruby Gem Chartkick
1) First use the option series: false; More info: https://github.com/ankane/groupdate/issues/63 2) The correct is to use Time.zone.now instead of Time.now; More info:…