Friends I have 2 models. Orders have several details. I use cocoon to create the forms. The order model has a total that is the sum of the totals of the child models. What I would like to know is how best to implement a sum in the child and then...
I'm developing a mobile application using jqMobile and Ruby. How to update a database table by clicking on an item in a list.
My list is generated like this:
<ul data-role="listview" data-filter="true" data-filter-theme="a" data-divider-...
I have gem 'bower-rails' installed in my application but when deploy I have the following error:
I added the gem rails_12factor
I'm using buildpack :
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-ruby...
To validate CPF and CNPJ I use 'brcpfcnpj' in Gemfile.
But I did not find anything to validate the CEI.
How to validate the INSS Specific Registry in Ruby on Rails?
How to declare a constant in Ruby? In other languages I do something like:
const CONSTANTE = 1024
And CONSTANTE can not be changed at run time. But I do not think anything like it in Ruby.
I have the following array :
images = %W(
droido 7midias vigilantes sebrae_mei dpe_saed websat ferpamweb dpe_chronus dpe_plantao
promocast lolitaface dpe_intranet cha_bar clinica_sorriso droido_mascote bom_sabor
)
What I want is a...
Ruby has the class Proc , which is defined in the documentation as
blocks of code that have been bound to a set of local variables. Once
bound, the code may be called in different contexts and still access
those variables....