Displaying 20 results from an estimated 90000 matches similar to: "Rails 2.0 Scaffolding based on an existing model??"
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/.
2007 Dec 10
15
Scaffolding for pre-existing database table in 2.0.1
Hi,
first of all I will apologize in advance for my presumably noobish
question, but I''m only starting to learn Rails and am a little
confused with all the changes in 2.0.1. There are as good as no
tutorials out yet and the 2 or 3 screencasts I''ve seen deal with the
creation of both the app and the database.
Now my problem is that I already have a database with a fair amount of
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.)
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
Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
2006 Feb 10
3
Error: Before updating scaffolding from new DB schema, try creating a table for your model (Product)
Hi all,
I''m new to Rails, I know this is a classic error, but I cannot resolve
it anyhow :(
This is my system config:
Windows XP SP2
Ruby 1.8.2 -> installed using windows installer version
Rails 1.0.0
MySql 4.1.10
I followed the instruction on rubyonrails.org, exactly step by step.
But the error occur everytime I tried to generate scaffold or generate
model.
I tried to googling
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
2008 Sep 02
6
Scaffolding
Hello everyone,
Does scaffold still work in the new rails 2.0?
Thank you,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
2008 May 29
0
Auto generated views for existing model.
Hello,
I have a customer table that has quite a few fields. Most consist
of billing and shipping address fields. I''d like to scaffold or
generate the views for this table, but the only way I know how would
be to create the model using the scaffold command (rails 2.0) and
specifying each field. There are at least 30 fields so my command line
is going to fill up fast. Ideally
2007 Dec 22
8
Rails 2.0 scaffold
Hey guys,
I posted the other day about scaffold not working and i was told that it
was rails 2.0 doing this. (btw i''m using adgile web development)
I have read on the internet that you need to put extra stuff like title,
description......
So i did this:
C:\ruby\depot>ruby script\generate scaffold Product Admin id:int
title:varchar(1
00) description:text image_url:varchar(200)
2008 Jan 18
1
Announcing: Ext Scaffold Generator Plugin for Rails
The Ext Scaffold Generator Plugin can be viewed as a drop-in
replacement for Rails'' standard Resource Generator. Accepting the very
same options, it will generate views using data grid and form
components from the Ext JS Javascript GUI framework as well as a
controller acting as an Ext-compatible JSON web service. The generated
code can be used as a starting point for further
2006 Mar 23
2
Question About Scaffolding for My First Rails App
When using ruby to generate scaffolding, is there an easy way to add
features that would be useful for keeping track of has_many and
belongs_to relations? For example, suppose I have the following:
Users
Sites
Pages
Modules
Each user has many pages, each site has many pages, each page has many
modules, and also the belongs_to relation holds in the opposite order.
I''m using the
2008 Feb 21
1
Creating incorrect plurals when generating scaffold
Preface: I''m trying to find my way through the "Build Your Own Ruby on
Rails Web Application" book. I''m completely new to programming and am
having a hard time figuring out the differences between rails 2.0.2 and
what''s in the book so please forgive me if this is a stupid question.
I''m confused because I finally thought I''d figured out the
2008 Jan 16
4
Calendar in Rails
HI All,
Please can anyone tell me whether there is a rails plugin/app that
allows creation of a calendar that can render events. I am not talking
about a calendar date picker of which there are several, but something
more along the lines of http://www.backpackit.com/calendar where an
html/css calendar can be rendered with dates highlighted.
Many thanks
Anthony
2006 Sep 06
1
Changing Scaffold
Hi,
I am starting a project in rails and I wish to change scaffolding.
I''ve already done some changes like prepare all texts for locale. Now
I am wishing to change the way it generates the _form partial. Could
someone give some guideline so I can study such thing?
I saw "template_for_inclusion" in form.rhtml but couldn''t find out
how to change it.
Being more
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
2007 Aug 23
0
active scaffold polymorphic model
Hi
I am trying to use active scaffold to build a polymorphic model .
I have a number of models that can be featured and I have a Feature model
that belongs_to :item, :polymorphic => true
In my config.columns I include :item_type and item_id, I also added
:item_name to show the name of the record in the form.
In the form, when a type of model is selected I populate the select box for
2006 Jan 16
3
the dreaded "Before updating scaffolding from new DB schema, try creating a table for your model (Blog)" error
Hi
Can any one help me with this? I think that this is soemthing quite
simple as there is quite abit traffic about this on the web and everyone
sems to figure it out. I have tried most of the solutions that I can
find. but nothing.
I have mysql 5.0.11 working on linux redhat 9. ruby is working rails
install mysql library seem to be there.
to some trying rt get mysql to install need to
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 Feb 21
4
Scaffolding plugins that support relationships. . .?
Hi All,
I''m looking for a quality scaffolding plugin. So far I''ve discovered
DryScaffolding and Streamlined. DryScaffolding doesn''t truly support
Rails 1.2.2 so I dropped that. Streamlined works, but is full of
quirks (e.g. many-to-many relationships not cascade updating
correctly, etc). Can anyone suggest a quality scaffolding plugin/
generator/framework that
2008 May 09
0
$80/hr - rails developer and mentor + active scaffold
$80/hr - rails developer and mentor + active scaffold
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to