Posts by Juliano • 311 points
26 posts
-
0
votes1
answer33
viewsA: JSON return format - NODE
could solve, by default oracledb returns an array to change this, I made the following change. result = await Connection.execute(query, [cep],{ outFormat: oracledb.OUT_FORMAT_OBJECT }); Obg…
-
0
votes1
answer33
viewsQ: JSON return format - NODE
I am mounting the REST API in Node, already closed the connections with Oracle and is working, however I need a JSON return different from the way being returned Currently he’s returning me this…
-
0
votes1
answer84
viewsQ: Consuming SOAP in Flutter, storing Cookie
Good morning everyone, I’m having a hard time, I need to consume a WS in SOAP, when I use Postman works, but when I try to work with the data in Flutter, it’s not working, I think it’s something in…
-
0
votes2
answers120
viewsA: Rails API Using Gem PUMA Development Environment >> Production
I managed to solve my Puma problem in production as follows Run command and copy generated key secret rake Create a file named Secrets.yml in config and copy the generated key in the following…
-
-2
votes2
answers120
viewsQ: Rails API Using Gem PUMA Development Environment >> Production
I have developed an API that connects in an oracle database is working properly in development, but when I try to run the GEM Puma in production, it gives error. command to execute *** SIGUSR2 not…
-
1
votes3
answers1630
viewsA: Update data on Setstate() Flutter page, enter Loop
I managed to solve, as follows... inserted a var for return var data = await Api.getProdPromo().then((response) { List lista = json.decode(response.body); promocoes = lista.map((model) =>…
-
-2
votes3
answers1630
viewsQ: Update data on Setstate() Flutter page, enter Loop
I’m having trouble updating the status I’m taking a list and showing her If I put Setstate in _getProdPro loops, if I don’t put, the data is not updated on the screen, someone knows how I can call…
-
1
votes2
answers213
viewsQ: Concatenate Listview into Flutter
I’m trying to display a received list on Json, but I need to concatenate it for better visualization... First case - No concatenation Text(promocoes[index].descrprod) Second case - With…
-
1
votes1
answer694
viewsQ: List on the Query screen the REST API , JSON on Flutter
I’m having trouble dealing with the return of a REST request. API: Rails is working properly. my job Future <Map> _getProdPromo() async { http.Response response = await…
-
1
votes1
answer28
views -
1
votes1
answer151
viewsA: Show Logged-in User on rails_admin Dashboard
If someone goes through this, I made the following adjustment, I created the line as below, so that the user can manage to be login. PS. Adjustment was made in Ability (cancancan ) def…
-
0
votes1
answer151
viewsQ: Show Logged-in User on rails_admin Dashboard
Good afternoon to everyone, I am developing a project in Rails 5 using Devise, cancancan and rails_admin, what happens is the following, I created some types of users, among them I cite users…
-
1
votes2
answers743
viewsQ: Read file and search word
I’m riding a script that will open a text file, play the words in a array, and then capture the word content, so far so good I can get the word content, but I need to go through all the array and if…
-
1
votes2
answers349
viewsA: select_collection on Ruby on Rails
I was able to solve it this way... In my view <% @students.each do |student| %> <tr> <td><%= student['nome'] %></td> <td><%= student['matricula']…
-
1
votes2
answers349
viewsQ: select_collection on Ruby on Rails
If I want to return the options of Active and Inactive so that I select, I use the following code in the view, then it returns the 2 status: <%= select(:student, :status, Situation.all.collect {…
-
1
votes1
answer55
viewsQ: New fields stay nil, what to do?
I’m deploying token and authentication, I’m using JWT and Devise, I’m having a problem with Devise, I don’t want to use email for authentication, I want to use a license plate, so I read the Devise…
-
1
votes0
answers151
viewsQ: Create new user in the database via Rails C
Help me where the error is occurring, because I am not able to identify pq the field is not being recognized. Rails c u = User.new(email:'[email protected]', registration:192536, password:'changeme',…
-
1
votes0
answers296
viewsQ: Authentication using Token With Devise Rails
Staff need help implementing authentication by token, I already created the models, the application is working properly, now I need to improve security. The customer will send me registration and a…
-
1
votes2
answers55
viewsQ: How to compare hash coming from JSON on RAILS
Personal created a web service that today receives a registration and a password, it makes a select in the database and compares see if the registration and password are equal, if yes it shows some…
-
2
votes3
answers670
viewsA: How to sort sql queries in the RUBY on Rails model?
Thank you all for your help, I managed to play sql responsibility for Model... I created a method in the model def sqlValidatedLogin(registration,password) query_student = "SELECT id, name,…
-
2
votes1
answer84
viewsQ: Manipulate . txt file in Ruby and pupular BD?
I need to open a file. txt whatever has a string sequence separated by ";" and needs to be placed each ";" on a vector to then create a loop and insert it into the database. What do I have: require…
-
4
votes3
answers670
viewsQ: How to sort sql queries in the RUBY on Rails model?
I have the following method an ROR application. query_student = "SELECT name, registration, room FROM students WHERE registration = "+ params[:registration]+" AND password = "+params[:password]…
-
1
votes1
answer1076
viewsQ: how to make queries passing 2 parameters via Curl?
I need to send via Curl a user and a password in txt same, it is only for test, for example Curl -v -H "Accept: application/json" -H "Content-type: application/json" http://127.0.0.1/Students/ I…
-
0
votes2
answers67
viewsA: Rails does not accept request
Do the following Edit as below /controllers/Applications protect_from_forgery with: :null_session
-
1
votes2
answers581
viewsQ: Create New Method in Rails
How do I create a method in Rails that queries the database in a given table and shows in View, and how I do to call this method and where to create? def somar @value = Registro.sum('saldo') end How…
ruby-on-railsasked Juliano 311 -
1
votes1
answer232
viewsQ: Foreign Key on Ruby on Rails 5
Good morning, I’m a few days with a problem using Rails5, I can’t insert Foreign key. Models: class Sushi < ApplicationRecord belongs_to :tipo_sushi end class TipoSushi < ApplicationRecord…
ruby-on-railsasked Juliano 311