Posts by Igor Martins • 659 points
21 posts
-
-7
votes2
answers668
viewsQ: Format pennies in real
Good afternoon, you guys. I’m trying to format pennies for real. That is to say var number = 312311 turn: R$3.123,11 But I’m having a hard time. How would I do that?…
javascriptasked Igor Martins 659 -
-1
votes2
answers203
viewsQ: App novice. Where to start?
Hello. I have been developing with Ruby on Rails and PHP for some time. I would like to create an application now... I wanted to start from the point I already know, that is, use one of these two…
-
0
votes2
answers49
viewsQ: How to use HATBM with multiple models
I’ll have the model Tag he’s gonna have a relationship HABTMwith POSTS. But I want him to have a relationship too HABTM with USERS because my goal is in the future to be able to find posts that have…
-
1
votes1
answer363
viewsQ: How to get related data in Ruby on Rails?
Hello. I have an app where User has_many Status. And Status has_many Likes. How do I get the total amount of Ikes a user has? For example, it has 2 status with 10 Ikes each, which gives a total of…
-
2
votes1
answer305
viewsQ: Sum a value in a field with Rails
Hello! In my users table I have a field of downloads. I would like when the user enters the page I add +1 in this field of the user. What is the best way to do this? Do I really need to make 2…
-
1
votes0
answers230
viewsQ: Ideas for an issue involving html and css
I’m developing an app where users can send photos that works like this: The app When a user chooses multiple photos, through a loop, a form is generated for each photo to fill in the title and…
-
2
votes2
answers841
viewsQ: Extra Fields Don’t Save With Devise
I’m new to Rails and I’m trying to implement Devise with a few extra fields. It is saving the email and password correctly, but my fields first_name and last_nameare not being saved. Are nil This is…
-
2
votes1
answer314
viewsQ: Wrong width in Chart div
I am trying to make an effect, when I choose an option in select, I show the corresponding div with highchart. Has 2 problems: 1- Width of Chart is not correctly completing width of div. 2- I’m not…
-
2
votes2
answers80
viewsA: Taking the last position on the bench
You have to add descending order and change the all for first $idAtual = $this->Albun->find('first', array('fields' => 'codigo', 'order' => array('codigo DESC'))); More hints:…
-
9
votes2
answers835
viewsQ: How to make an effect by adding a new item to a list
I have a list that updates from time to time and would like to add an effect equal to this site: Website It’s the list that’s in the middle of the site. Where, when a new item enters the list, the…
-
1
votes1
answer280
viewsA: Cakephp Site Server and Domain Change
Probably on this new server the mod_rewrite apache must be disabled. The cakephp needs this module to work properly, just activate it will be ok.…
-
1
votes1
answer1286
viewsA: Open images on the same page with Fancybox in Cakephp impossible
According to your information, it seems that neither js nor css are being loaded correctly. In your layout replace: <link rel="stylesheet" href="/fancybox/source/jquery.fancybox.css?v=2.1.5"…
-
0
votes1
answer343
viewsQ: How to save a HABTM after save to controller?
I have a table on Users HABTM Solicitations. After saving my request, I want to include a new data in the table solicitations_users if($this->request->is('post')) {…
-
14
votes4
answers1700
viewsQ: Understanding Node and Applications in Real-Time
Since I met the Cakephp I got used to programming with him, because I had a small learning curve and very fast development. For my recent application, I needed the data entered by users to be…
-
4
votes2
answers263
viewsQ: Looping an array to always choose the next value
I have an array of users and need to make a looping between them. It will work like this, every time someone makes a request on the page, I need to be recorded in the database the next user of what…
-
0
votes2
answers3135
viewsA: What would be the default size to create buttons in the menu of websites, in different resolutions?
As far as I know, it doesn’t have a standard size, it will even depend on your design. Often the button is not even a button in itself, but a word. These things depend a lot on where you’re going. I…
-
1
votes2
answers2620
viewsA: decrease time of jQuery slider
In your javascript, decrease function time setInterval $(document).ready(function(){ $(function(){ $('div.fios-cobre div.slide:gt(0)').hide(); setInterval(function(){ $('div.fios-cobre…
-
3
votes2
answers5503
viewsA: Export from html table to excel
In the archive Excellentexport.js,in this line: var template = {excel: '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel"…
-
3
votes2
answers462
viewsQ: How to make "new" notification equal to Gmail?
Hello. I’m looking for how to make a "new" notification equal to Gmail: That is, when there is a new item in the list the "new" tag appears and only disappear after the person views it. From the…
-
2
votes2
answers993
viewsA: View Neighborhood According to City - CAKEPHP
Dude, I have a simpler solution. You’re gonna have to change your code a little bit. Throughout the code I put some comments to help you. Come on: Your view: echo $this->Form->input('cidade',…
-
1
votes2
answers349
viewsQ: Design table of "workflow"
I’m doing an application in Cakephp and would like your help in what would be the best way to create my database and my relationship between models. It would be a "workflow". I would like it to work…