Questions tagged [scaffold]

429 questions
0
votes
0 answers

Scaffold-DbContext create model based on existing database, Package Console throws an exception

I created a database with Microsoft SQL Server Management Studio, added the connection to my visual studio project. Then I wanted to use Scaffold-DbContext to create a model based on the existing database. So I input Scaffold-DbContext…
0
votes
2 answers

Rails listing problem

I generated a scaffold and I created a casual application. I want to list the scaffold items on a sidebar, everywhere on the application (inside application.html.erb). My left column, in application.html.erb looks like that: >
Ariel
  • 2,638
  • 4
  • 23
  • 27
0
votes
1 answer

Users able to see Owners properties Rails 5.2

I've been developing an app kind of like a Real Estate platform. But i've encounter son difficulties on a specific functionality. I have two types of users: Owners and Users. Owner creates properties and user obviously needs to visualize them and…
user8599704
0
votes
1 answer

Screen is popped off the stack using Navigator

I populated a Gridview with a couple items, and when I press an item it leads me to a Details page containing the info about it. But somehow when I press the Backbutton it doesn't return to the previous page but to another one, I believe it pops off…
Diogo Sequeira
  • 126
  • 1
  • 9
0
votes
1 answer

Displaying Nested Scaffolds on Index

I'm trying to display something like this on posts/index.html.erb Post #1 Comment #1 for Post #1 Comment #2 Post #2 Comment #1 for Post #2 etc. It works fine if I go to /posts/1/comments/, /posts/2/comments/ etc Since it's using the index…
airlok
  • 425
  • 3
  • 14
0
votes
1 answer

Flutter - after clicking bottom navigation menu icon => selected icon color and text color not changing

I am new to flutter , Please help me to get out of this issue, Issue -> After click any of the menu icon , color is not changing While staring app , icon colours are setting correctly , Home icon is default , if I click Scan or settings icon green…
Saranya Subramanian
  • 417
  • 1
  • 5
  • 19
0
votes
1 answer

Rails generate scaffold no longer generate .jbuilder files

I've created custom templates for my model record and views however now the .jbuilder files are no longer generated in views/ below screenshot of my lib folder What should i change to have the jbuilder files generated?
Peter Van de Put
  • 878
  • 10
  • 26
0
votes
1 answer

Where are Ruby on Rails 6 scaffold templates located?

I'm starting work on a new Ruby on Rails 6 app and I need to find the default scaffold_controller template and also the default view files: _form.html.erb, index.hmtl.erb, edit.html.erb, etc... so that I can customize them by placing them in the…
0
votes
3 answers

How can I add the floating action button in my code

I am trying to add the flaoting action button in my flutter application and since only one child can be implemented I cannot figure out where should I put the code for the floating action button. I can put it in the column as children but then it…
Ojasv Singh
  • 41
  • 1
  • 6
0
votes
1 answer

How to make model associations between two models in Ruby. Or How to take data from one model and use it in another model?

So I create two models, one "Course" and one "Section" with scaffold and need Section to display Courses in a drop down menu that reflects any courses that were created in the course model and use it to create in section. I've been able to get the…
anybodii
  • 11
  • 2
0
votes
0 answers

Rails putting white space in scaffolding command when not being told to

Forgive the title if its not exactly clear, not sure how to properly say the issue which is probably why Google isn't helping. Anyways: Trying to use Ruby on Rails scaffold command rails generate scaffold Product \ title:string description:text…
anybodii
  • 11
  • 2
0
votes
1 answer

scaffold.dart: Illegal character '8594'

anyone knows how to solve this error? I did not change anything in the scaffold file the analyzer failed with the following error: Error in /Users/----/desktop/flutter/packages/flutter/lib/src/material/scaffold.dart: Illegal character '8594'.
0
votes
1 answer

RoR... my scaffold table doesn't fill when i use radio buttons

I have a problem, i made a scaffold, generating the table "requirements", i want the user to fill the fields of the table in the edit and the new requirement with select boxes and radio buttons. The select box and the radio buttons appear in the…
0
votes
1 answer

Rails edit scaffold generators

I am trying to edit rails scaffold generators where I want to add custom action to my controllers and add them into routes. I can edit model generators by adding this code in my lib directory: #/lib/template/active_record/model.rb <%…
Nilay Singh
  • 2,201
  • 6
  • 31
  • 61