Displaying 20 results from an estimated 20000 matches similar to: "scaffolding extensions plugin"
2006 Jan 12
8
Scaffolding support for many-to-many editing (habtm)?
Like with simple table editing, there are also typical ways of how a
user usually interacts with one-to-many or many-to-many relations. For
example, one would show the fields of one row of table1 in the screen
and below a line-by-line view of all associated entries in table2. Then,
one could press an "Edit" button and add or delete rows from table2 to
this entry of table1,
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
2006 Feb 01
1
Scaffolding Extensions plugin and multiple HABTMs
Hello list,
For a school management application, I''ve got three tables:
- people
- subjects
- roles (e.g. ''Teacher'', ''Student'', ''Tutor'', ''Lecturer'', ...)
The HABTM relationship is 3-way, with the links being stored in the
people_roles_subjects table. A person can have a role in a subject,
but may have different
2006 Mar 01
7
Instant Management Frontend with the Scaffolding Extensions Plugin
I''ve updated the Scaffolding Extensions Plugin[1] recently to add a
couple new features:
1) Scaffold all models and associations with one command
2) Show all associated objects on the edit page
Example of usage:
In an existing Rails application, create a controller (i.e.
"script/generate controller crud"), and modify so it looks like:
class CrudController <
2007 Jan 18
8
How can I find out which attribute is screwing up pluralize/singularize?
Hey there :)
I''m creating this app on top of a legacy database, that has a mixture
of auto_inc ids, non-''id'' named pks, non-integer-pks, foreign keys that
end in _code instead of _id, etc.
I have the model working great in the console, where I can create any
modeled object and reference other objects without issues.
However, I''m running into problems with
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.
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
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 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
2006 May 04
1
Ajas Scaffolding and RJS Templates the same thing?
Hey all,
I''m just starting in rails and am working on my first app. I need to do
inline editing for 2-15 rows of data on a page. I found Ajax
Scaffolding here:
http://www.ajaxscaffold.com/
And it is EXACTLY what I want in my app. But I''ve also been trying to
read a bit up on RJS Templates. Are they basically the same things
except RJS is built into rails or is the
2007 Feb 07
5
Problems Generating Scaffolding
I am having trouble generating some of my scaffolding. I''m trying to
use PostgreSQL as my back-end. Some of my scaffolding generates with
no problem but for other parts I get this:
Before updating scaffolding from new DB schema, try creating a table
for your model
The tables do exist. At least I can see them from psql.
Here is the SQL I''m using to create my tables:
CREATE
2010 Jun 19
0
whether scaffolding can be used with cassandra database
hi
I am using cassandra gem 0.8.2 and activerecord-cassandra-adapter by
winebarrel. The database does not support migration. So, things like
scaffolding can be used with Ruby on Rails?
Pls do the needful
--
View this message in context: http://old.nabble.com/whether-scaffolding-can-be-used-with-cassandra-database-tp28933334p28933334.html
Sent from the RubyOnRails Users mailing list archive
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'',
2005 Dec 29
3
Maintaining DB reflection without scaffolding
Hi,
I would like to know if there is a way to maintain database reflection
for the ''new'' and ''edit'' views whilst removing scaffolding?
I''m trying to create a webapp that will be somewhat maintainable by
colleagues (that aren''t necessarily web developers) through simple
manipulation of db table fields.
For example to add another field to the
2006 May 19
4
Lookup tables and scaffolding
It occurs to me as a missing feature that there''s no way to indicate a lookup
table relationship (as opposed to other sorts of foreign key relationships)
in Rails and that the scaffolding generator could recognise this lookup and
render a drop-down list automagically for the lookup table.
Say you have an Address and a State, and the State is a lookup table. In
addresses you have
2006 Jan 27
6
Scaffolding to use has_many and belongs_to ?
What does everyone on this list think about enhancing scaffolding
somehow so that a "has_many" relationship will automatically drop the
<select> box into the view to reference the "belongs_to" part of the
view?
I think scaffolding is great but I am always adding the <select> boxes
to reference the parent association. Do you think this would be
useful? just a
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 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
2007 Feb 07
2
Problems Generating Scaffolding
I am having trouble generating some of my scaffolding. I''m trying to
use PostgreSQL as my back-end. Some of my scaffolding generates with
no problem but for other parts I get this:
Before updating scaffolding from new DB schema, try creating a table
for your model
The tables do exist. At least I can see them from psql.
Here is the SQL I''m using to create my tables:
CREATE
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