Posts by Daniel Ribeiro Moreira • 149 points
4 posts
-
1
votes1
answer155
viewsA: Group Mysql Values
Assuming that your table is called "table", and that your database manager supports the MIN and MAX aggregation functions (mysql and postgres support), the following query should solve your problem.…
-
0
votes1
answer81
viewsA: Error installing Compass on Mac
Apparently you are not able to compile an extension in native code from Gem. I mean, this one Gem needs something external to ruby that was probably programmed in C. I recommend installing programs…
-
0
votes2
answers947
viewsA: Add values from a column with Ruby
The class that represents your model may contain a class method that calculates the sum of all debt values. I’m guessing there’s a table dividas in your database, which contains a column valor.…
-
1
votes1
answer87
viewsA: How to use authentication in Sinatra?
Apparently it has a 'sinatra_warden' Gem that interface between Warden and Sinatra for you https://github.com/jsmestad/sinatra_warden (in English). Example of use, from the module’s own…