Questions tagged as 'create'

1
answer

There is no ViewData item of type 'IEnumerable' that has the key

I'm having a problem with the Employee Position that stays in a separate Table, when I try to create an employee selecting the position, it's the error ... but if I assign the position in the Controller (Ex: official.CargoID = 1) it works normal...
asked by 15.11.2016 / 23:53
1
answer

rails rspec, error in post: create, params require

I'm starting the rspec tests in RubyOnRails and I'm having a problem testing my controller's create: it "creates lançamento" do post :create, params: attributes_for(:lancamento), format: :js, xhr: true expect(Lancamento.count).to eq(1) end...
asked by 11.04.2017 / 16:33
1
answer

Add Input with Jquery and how to get input data

I have 1 button in JS that creates input. Only I can not get this input data. I can create each input with a different name , but I have no idea how can I get these values from php . I tried to send the var add to loop, but it can not ge...
asked by 18.02.2015 / 15:42
1
answer

Error "ActionController :: ParameterMissing", even with form sending parameters

I'm probably letting something go, but I've been trying to find the solution for hours and nowhere. I'm creating a games CRUD. My problem is happening in the games#create action of my controller games . Here is my implementati...
asked by 31.07.2018 / 08:43
1
answer

Concatenation Create Table

I'm trying to create a table from the user's email, and I'm using the code below: $email = $_SESSION["email"]; echo $email; $create=mysql_query("CREATE TABLE userpics_'$email' (id_user VARCHAR(60), id_pic VARCHAR(200), id_tipo INT(2))");...
asked by 21.04.2015 / 21:50
1
answer

Error creating application with create-react-app

I installed the create-react-app all right, but when you tried to create a project using the hello-world create-react-app command it gives the following error: C:\Users\j.santos.da.silva\Desktop\curso-angular>create-react-app hello-world...
asked by 12.06.2018 / 17:39
2
answers

Problem creating table in MySQL

I'm trying to create a table in MYSQL : CREATE TABLE 'narguile'.'Aluguel' ( 'idAluguel' INT(255) NOT NULL , 'produto' VARCHAR(255) NOT NULL , 'qntdeProduto' INT(255) NOT NULL , 'desconto' DOUBLE(255) NOT NULL , 'descricao' VARCHAR(255) N...
asked by 22.07.2018 / 17:03
0
answers

Ubuntu cinnamon hangs after CREATE on the docker-machine

That's the moment you caught (I'm on another computer) docker-machine create --driver virtualbox uhu Creating CA: /home/thatanero/.docker/machine/certs/ca.pem Creating client certificate: /home/thatanero/.docker/machine/certs/cert.pem...
asked by 24.02.2018 / 20:07
1
answer

Error executing SQL "Create Trigger ..." within a C #

Goal: Run a create trigger script using a string inside C #. Problem 1: Table not found (because the script does not indicate in which Table to create the trigger). Attempt2: Start the string with "Create Trigger on [dbo]. [Table]". Pro...
asked by 14.06.2017 / 14:23
0
answers

Create function for formatting (X-1, X-2, X-3) for ('X-1', 'X-2', 'X-3')

I have a query that returns some CHAR type keys like this X-1, X-2, X-3 . The problem is that I now need to use with where chaves in( ... ) and would have to format the values for 'X-1', 'X-2', 'X-3' . This would save me some...
asked by 03.02.2015 / 21:43