Posts by ygorbr • 77 points
8 posts
- 
		3 votes1 answer11096 viewsQ: Validate credit card with jsI would like to know how to validate the credit card through Js. Visa starts with 4 Mastercard starts with 51, 52, 53, 54 or 55; American Express starts at 34 and 37 Someone knows the best way to… 
- 
		0 votes2 answers420 viewsA: getElementById to modify 4 images with clicks linkSolved the image problem. It was only necessary to remove the image path that was being inserted according to the tutorial I used as a basis for using the js method. function mudaImagem(i) { if (i… 
- 
		0 votes2 answers420 viewsQ: getElementById to modify 4 images with clicks linkI am trying to use the function to change between 4 images through clicks on certain links. However while an image appears, the other 3 also appear as a field to be filled in. I would like to show… 
- 
		0 votes2 answers1228 viewsQ: Change date format in Rails formI know there is how to edit in the location, to pass it to the Brazilian format. But I do not know the syntax to change the format in the form: <div class="field"> <p> Garantia… 
- 
		0 votes1 answer243 viewsQ: How to resolve Activerecord::Statementinvalid: PG::Undefinedtable error in Rails?I am developing an application in Rails and the following error appears in my bank when I try to perform a rake db:migrate. I already tried to drop the bank and create in sequence, however the same… 
- 
		0 votes1 answer1873 viewsQ: Postgresq-9.2 failed connection to Unix Domain SocketI configured the postgresql-9.2 database in my Ubuntu 14.04 and it shows the following error when communicating with the database Is the server running locally and Accepting Connections on Unix… postgresqlasked ygorbr 77
- 
		1 votes1 answer65 viewsQ: Write to ruby-on-Rails 3.2Following the tutorial of railscast to add an image of the site Ravatar I found a lagged information with the updates of Rails. The code to create a default image in case of absence of registration… 
- 
		2 votes1 answer297 viewsQ: Register a Devise "User" through Seeds.RbI’m finishing a project and want to create a default user. The entire user registration structure is carried out by the Developer embedded in rails_admin. Through search I found this syntax below…