Posts by Luiz Picolo • 649 points
23 posts
-
0
votes1
answer92
viewsA: How exactly does "private" and "protected" work in Ruby?
The way in which we can perform access control in the Ruby <3 language is theoretically the same as all other languages. However, the syntax is a little different. All methods, by default, are…
-
1
votes3
answers122
viewsA: Error to popular Array with Vuejs + Firebase
The error was in the function either returned the data. Instead of the method on I used the method once. It worked the way you wanted it to.…
-
1
votes3
answers122
viewsQ: Error to popular Array with Vuejs + Firebase
I’m Dev Ror and I’m in my initial studies with Vuejs. To do so, I started creating a Todolist with Firebase for data persistence and a problem occurred to me. I created a function to return data…
-
-3
votes2
answers985
viewsA: What are the appropriate scenarios for graph-based databases
What are the appropriate scenarios to use this type of database? Passwords where performance is required and where data is not organized. A legal reference for this is Bigdata. What would be the…
-
0
votes2
answers47
viewsA: Null return of an object in the controller - RAILS
It is not the right way, but in your case it can solve your problem. I recommend adding the full code for analysis. def index @produtos = Produto.all end def gerarlog @produtos = Produto.all…
-
0
votes2
answers72
viewsA: Q. Rails Undefined method `full name_for #<Room:0x0000000ed6d478>
You cannot define methods in your controller which are responsibilities of your model. Based on the idea of the MVC, your controller is only a "forwarder" of requests. Therefore, you should delegate…
-
1
votes1
answer68
viewsQ: Error editing user register with nested_form
I’m having a problem with an app I did here on the job. I use nested_form together with Devise for a student registration, that is, when I register a student, I already add a user to it in the…
-
0
votes1
answer125
viewsQ: Sidekiq for multiple domains
I have a production server that will contain several clients, and I want to add the sidekiq to manage image processing queues. But, I don’t know how it behaves for multiple domains, that is, each…
-
1
votes1
answer370
viewsQ: Error accessing input fields with Cucumber + Capybara
I was writing my Steps for my tests with the Cucumber and they are not finding the ids, Labels or Names of the forms. I’ve looked at several tutorials on the internet and really my problem is very…
-
1
votes1
answer176
viewsA: Problems with multiple ajax forms on the same page
Analyzing your page I realize that the error is not exactly in the remote but yes in your form as one is contained within the other. For example: <form> <form> </form>…
-
2
votes1
answer223
viewsQ: Error running continuous integration test - Travis-CI
For learning purposes I am using the services of Travis-CI to carry out the integration tests continues on a personal project. When running the test locally all pass, no errors. However, when…
-
3
votes2
answers515
viewsA: php Show the variable
See if this can solve your problem. sql = ("SELECT Nome, data1, data2, data3, data4 < (now()+ interval 10 day)"); $validade = mysql_query($sql); while($row = mysql_fetch_array($validade)){ $Nome…
-
5
votes5
answers1446
viewsA: Is it possible to include elements in the DOM after it is loaded and ready?
The best way for the data to persist in the table is to use localStorage or sessionStorage . HTML5 - LOCAL STORAGE Here is an example of usage. The data is kept in the localStorage.…
-
1
votes1
answer397
viewsA: Integration between Magento and Moodle
This type of integration can be done yes, but it depends on the way you want your application structure. Nothing prevents that when a user buys a course, the system generates a login and password…
-
2
votes1
answer1666
viewsA: How to upload multi images to Codeigniter?
To perform multiple uploads in Codeigniter you must use a library that provides your application with this peculiarity. I recommend the Swfupload https://code.google.com/p/swfupload/ As for the…
codeigniteranswered Luiz Picolo 649 -
4
votes6
answers47964
viewsA: What is JSON? What is it for and how does it work?
Json and Join are completely different things. Join is used in a database when you want to return data from multiple tables that have relationships between them. Should be used when you want to get…
-
0
votes4
answers3156
viewsA: How do I create an sql view with more than two tables?
This SQL code will create a view for you CREATE VIEW nome_view AS SELECT * FROM tabela Documentation: http://www.w3schools.com/sql/sql_view.asp…
-
0
votes2
answers183
viewsQ: How to test with Rspec?
Even studying TDD with Rspec I still have difficulties understanding how to perform certain test. How would I perform a test for this method that has a return of articles? OBS: I use Mongodb with…
-
5
votes2
answers483
viewsQ: How to show the files that need to be commited?
How to show files that need to be "commited"? Or, there’s some program, for Linux-based distro, that behaves like the Eclipse Git module, that shows me the files that need to be added and "commits"?…
gitasked Luiz Picolo 649 -
1
votes2
answers114
viewsQ: Error when running implementation test
I use the Travis-Ci (as learning) to better understand about implementation tests. Since the build 14 I have this mistake https://travis-ci.org/luizpicolo/website-ruby-rspec-mongodb/builds/17973711…
-
2
votes3
answers847
viewsQ: Correct model test (Rspec)
I created a test to validate my model and I want to know if it is correct. describe Article do it "object article create is valid?" do article = Article.create article.title = "Title for Test"…
-
10
votes3
answers2292
viewsQ: How do I leave a "Default" language on Github?
This is a project done in Ruby, however, how I used the Twitter Bootstrap, it presents as the predominant language Javascript, because it is the language that predominates in the repository. It is…
-
6
votes2
answers967
viewsQ: How to create a test with Rspec to verify user feedback?
That one describe below is the default that Rspec creates. I have a hard time working with TDD (Test Driven Development) and it is difficult to understand the whole procedure. For example, I need to…