Questions tagged as 'rails4'

1
answer

Multiple Joins with Active record returning null

Friends, I have the following console outputs (Rails 4.1): Product.all Product Load (0.2ms) SELECT "products".* FROM "products" => #<ActiveRecord::Relation [#<Product id: 4, cod: "160", descricao: "Sutiã", price: #<BigDecimal:...
asked by 02.06.2016 / 21:07
1
answer

Select duplicate field with chosen-rails and relationship has many through

Personal speech, I have a GROUP_TV table and it relates to the City table through the has many through. In the _from.html.erb of the GROUP_TV view, I have a collection_select to select as many cities as I want. This works perfectly. The...
asked by 06.05.2016 / 22:23
0
answers

iugu checkout example for rails does not work

I'm trying to make this iugu example work: link I have a iugu account in test mode. I followed the steps in this tutorial, I made the necessary modifications like putting my account id in the defined place and the api key in the controll...
asked by 02.05.2016 / 20:42
1
answer

Datepicker brings wrong calendar after filling in the field

It happens like this: Mum field date, when it is empty, it brings the datepicker correctly and fills the field in the format of yyyy-mm-dd bank and saved in that format. When I edit, when placing the cursor in this field, it brings a different c...
asked by 02.03.2017 / 19:41