Questions tagged [scaffold]

429 questions
0
votes
0 answers

Rails uninitialized constant Sprockets::Rails (Name Error)

I am trying to generate a controller with a rails app. However, the command prompt will not let me create the controller scaffold. It instead displays this error involving…
metaco57
  • 155
  • 3
  • 15
0
votes
0 answers

Rails keeps stating error when trying to create scaffold

I'm needing to generate a scaffold for my rails app, but the system keeps stating a long error involving actionpack. Problem is, actionpack is tied to many different parts of the app. If I delete it, the entire app and its files will not work. Here…
metaco57
  • 155
  • 3
  • 15
0
votes
0 answers

Rails Database Commands not working

So I just finished setting up a new test deploy server and am using a test ruby app to test it out. Everything got deployed correctly using capistrano. But nothing shows up on the webpage ip. And like the tutorial I was following said, I needed to…
Corey
  • 835
  • 1
  • 9
  • 32
0
votes
3 answers

How can I restrict someone to access the data he hasn't created? (ruby)

I'm using Ruby on rails with devise. I generated a scaffold. tasks_controller.rb: def index @tasks= current_user.tasks end By using this, I'm able to show the people only what they have created, but other users can see the data of tasks that…
Ninja Boy
  • 1,112
  • 3
  • 14
  • 28
0
votes
2 answers

Do I have to run rake:db migrate after each scaffold?

I'm in the process of creating a rails API for scheduling appointments. I'm worrying about making a generic app version first, and then I'm going to make it in to an API, as I havn't done that before. I've been generating 4-5 scaffolds (rails…
Jackg093
  • 13
  • 3
0
votes
1 answer

Building a questionnaire in Rails - Display only one field at a time instead of a long list of fields?

I'm using Rails to create a questionnaire application. I have a created a scaffold with the model called Question. The questionnaire has 30+ questions so when I create a new questionnaire I have a long list of questions in a row to answer, generated…
OskarH
  • 165
  • 1
  • 9
0
votes
2 answers

Run a create n times in rails4

I want to do this: I have a Model called Item with a field called name generated with scaffold: rails g scaffold Item name:string My question is: When I have to create a new Item I go in localhost/3000/new and I only can create a Item each time.…
user4543828
0
votes
2 answers

grails scaffolding broken

Grails scaffoldin does not work in my grails application. When I go from the main page to the specific controller page it output something like this: Error 500: Servlet: default URI: /myapp/myDomain/list Exception Message: Tag [sortableColumn] is…
user2427
  • 7,842
  • 19
  • 61
  • 71
0
votes
2 answers

Scaffold is ignoring class file in CakePHP

when using scaffolding on a controller the views render fine and the app even attempts to insert the data; the problem is that the scaffold is completely ignoring the relations I'm defining in my model class, in fact it's ignoring the class entirely…
JoseMarmolejos
  • 1,760
  • 1
  • 17
  • 34
0
votes
0 answers

Customizing Scaffold Views in Ruby on Rails

Rails generators are very helpful tools and I wanted to customize existing ones for views. I’m new to Ruby, so I wanted to ease my workflow. I generated “user” model with default scaffold templates. Then I modified it a little to put some Twitter…
candle
  • 1,963
  • 3
  • 15
  • 24
0
votes
0 answers

How can I scaffold a webpage with placeholder content in ASP.NET web forms?

I have many webpages on my site that are articles. Each time I create an article, I start by copying a sample file, then replace the placeholder content with the new content. I am searching for a more automated way of copying the sample file to my…
edt
  • 22,010
  • 30
  • 83
  • 118
0
votes
1 answer

get company description in Ruby

I have a table Company with companyid and companyname, and a table Config for my company configuration that have id, companyid, companyname, config that is in my dropdown generate by rails g scaffold how can I override/change Ruby's Save/create…
jayj
  • 23
  • 6
0
votes
1 answer

Do I Generate a :primary_key to Create Headers in Table?

Rails g scaffold Quantified {type:string (i.e. average or instance) name:string metric:string} result:decimal date:date Do I use a :primary_key to help generate the below table? I put the main components in the above brackets. I want the bracketed…
AnthonyGalli.com
  • 2,796
  • 5
  • 31
  • 80
0
votes
0 answers

dynamic scaffold doesn't workd

I have a domain like this: package helloworld class User { String name int tuoi String ho static constraints = { } } and a controller: package helloworld class UserController { def scaffold = true } after…
thanh
  • 55
  • 6
0
votes
1 answer

How Do I Get an Modified Column from a Rails Scaffold to Hold Information as the others?

I generated a scaffold for a To-Do List app, and I left out some columns to add later. I ran the command to create a migration to add a new column named client and I changed my files so that it shows on the projects index and form, but when i enter…