Displaying 20 results from an estimated 10000 matches similar to: "weird scaffolding error"
2006 Feb 26
0
error Before updating scaffolding?
Hello all, I am a bit hung up.
I have created a simple table (pluralized) named aircrews and I have edited
my database.yml file to point to the database that I created and that is
holding the table aircrews.
I have gone through the depot tutorial in the Agile book and when I have run
the scaffolding command for the depot app all has worked fine for the table
products.
Now when I run the ruby
2005 Dec 28
5
simple scaffold question
How do I get scaffold to generate code for a table whos name is not plural
of the modelname I give to it. I.E., If I have an existing database, and
wish to generate scaffold code for existing tables, is this possible???
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jun 07
2
script/generate scaffold pluralizes class names
Hi everyone,
I''m a rails & ruby nuby, and this is my first post to the list.
Here''s my environment in case it helps diagnose my problem:
Ruby version
1.8.4 (powerpc-darwin8.6.0)
RubyGems version
0.8.11
Rails version
1.1.2
Active Record version
1.14.2
Action Pack version
1.12.1
Action Web Service version
1.1.2
Action Mailer version
1.2.1
Active Support version
1.3.1
I did
2006 Jan 23
2
scaffolding generators and pluralization rules
I''ve been working through the "Rolling with Ruby on Rails" tutorial and have come up against something I''m hoping someone here can help me understand.
In part two of the tutorial, Curt introduces the "ruby script\generate scaffold re
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Sep 19
5
problem after scaffolding
hi guys,
I am having problems after scaffolding
I created a db called "requests"
and when i tried to execute the command
script/generate scaffold request
It gave me an error please make sure you have a database request created
before you do this
The db is obviously created; rails cant access it...
so I tried to hack i copied my view model and controller files from my
local deployment to
2005 Aug 08
7
Problems with ./scripts/generate scaffold
Hi all,
I''m new to rails after having used perl for most of these things, and am
trying to get my head around the generate script for a project playing
around
with.
If I do:
./scripts/generate controller Device
I get app/controllers/device_controller.rb
where I can then add:
scaffold :device
However, if I want to actually generate the scaffolding so I can make
some changes:
2006 Jun 12
3
Weird problem related I am having with scaffold
i,
I have this in expense_controller.rb:
class ExpenseController < ApplicationController
scaffold :expense
end
It works fine, but let''s say I want to override scaffold''s list.
For some reason, just making list.rhtml in views\expense is enough, and
there''s no need to add
def list
end
in expense_controller.rb. However, that''s not my real problem.
Now
2006 Apr 07
0
Dynamic Scaffolding vs. ScaffoldGenerator
I asked this question before, but didn''t get any response. I hope
someone can give me some clue now.
Here''s the background, I upgraded to rails 1.1 and suddenly I was
getting strange failures in my functional tests. I traced the problem
to dynamic scaffolding. I had overwritten all of scaffold''s methods
in my controller (all but show and destroy). Destroy no
2006 Apr 20
1
generate scaffold not generating views
Hi!
Sorry for the newbie question...
I''m following the depot example in AgileWebDevelopmentWithRails.
Stangelly, generating scaffolding using the command (page 53):
./script/generate scaffold Product Admin
does not generate any .rhtml file, but just:
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
2006 Feb 13
0
using Scaffolding Extensions plugin
After I downloaded this plugin, I am not sure how to use it. According
the doc:
Generally, the scaffolding extensions are used in same way as the normal
scaffolding. Inside a controller, run the command:
scaffold :album
But I tried to run scaffold :control_name, (I have table in the
database) in the app/controller, the system says " scaffold: command not
found"
Suggestion? Thanks in
2008 May 04
1
scaffolding with namespace
Hi,
is there a way to scaffold with namespace?
I''d like to generate a Posts model with namespace admin. But using
script/generate scaffold admin/post title:string
the migration would generate a table "admin_posts".
So I did now
script/generate scaffold post title:string
moved the controller, views manually to admin/... and had to change each
link manually from (e.g.)
2006 Jul 22
2
Error: Before updating scaffolding from new DB schema, try..
Hi, I''m going through the Depot tutorial in the book "Agile Web
Development with Rails" and I can''t even get past the very first step.
I''m getting the following error:
"Before updating scaffolding from new DB schema, try creating a table
for your model (Product)"
when I try to run "ruby script/generate scaffold Product Admin.
I have a table
2006 Aug 02
0
Updating scaffolding to better fit Resources
Now that were designing are controllers to just be CRUD, scaffolding
makes a lot of sense (DHH must of had this planed from the beginning).
The current scaffolding should be modified to better fit Resources.
Scaffolding doesn''t need to be redone, it just needs a few tweaks.
I''ve already started converting the scaffold method. I made a plugin,
but it still needs some work.
2008 May 21
2
Scaffolding and ActiveRecord in Rails 2
Hi,
Is is possible to add this constraint: "null => false" and "limit => 45"
like below:
create_table :movie do |t|
t.string :name, :null => false, :limit => 45
end
...just by using this kind of scaffold command (on Rails 2)?
$ ruby script/generate scaffold Movie name:string
Thanks,
D.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 16
0
scaffolding issue - new action defaults to list action
I''m creating a photo blog with ror. The front end has gone great, so
now I''m working on the back end, and was playing with scaffolding.
I generated these scaffolds:
ruby script/generate scaffold Photo admin/photo
ruby script/generate scaffold Camera admin/camera
Then, in my routes, I added this line:
map.connect ''/admin'',
2006 Mar 24
0
merging models/views with scaffolding
Allo,
Just started playing around with RoR/scaffolding and have been
impressed so far. However, it seems to create a 1:1 relationship
between Controllers and Models and the basic CRUD actions -- I need to
CRUD two models from the same views and actions.
I have:
Book model
Book controller, with create/edit/show/destroy/list actions and the
scaffold-gen''ed views.
Category model
Category
2009 May 27
4
Scaffolding Results Format
Hi Everyone,
I built a scaffold and I''m having trouble getting results properly
formatted. (I need to get the data into multiple columns instead of just
one big column) I can''t get all of my CSS to work properly in
scaffold.css, layout/books.rhtml, or the books/index.rhtml.erb Anyways,
maybe you have a suggestion.
Default view (127.0.0.1:3000/books)
Title Abstract
2009 Jul 04
3
scaffolding
hi , i used the folllwing command to scaffold,
G:\my\webblog>ruby script/generate scaffold webblog id:integer
title:string body
:text created_at:datetime
after when i migrate with the follwing command
rake db:migrate
i got the error as
(in G:/my/webblog)
== 1 CreateWebblogs: migrating
================================================
-- create_table(:webblogs)
rake aborted!
Mysql::Error:
2007 Jan 05
0
web service scaffolding: array and 2d array params
Hello,
Currently when you build a web service with ActionWebService, you can
generate a scaffold (using a command like "web_service_scaffold
:invoke") that will allow you to call your web-enabled methods from the
browser.
Currently, if any of those parameters are arrays, you get the message
"Typed array input fields not supported yet", and you can''t enter the
2007 Oct 19
0
Rails 2.0 Scaffolding based on an existing model??
After a fair bit of reading around and googling, it appears that I
can
not use script/generate scaffold to make a scaffold based on an
existing model. Is this correct and if so is there a plugin that can
achieve this in Rails 2.0?
My thanks
Anthony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: