Displaying 20 results from an estimated 100 matches similar to: "Scaffolding Extensions plugin and multiple HABTMs"
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 Mar 30
3
Export Fixtures Plugin
= Description
This plugin is a super lightweight tool used to export data into the
test/fixtures directory.
So if you want to export all your data from your production server into your
development environment, this will simplify the process without having to
load up your database manager.
[%] rake db:fixtures:export_all RAILS_ENV=development
[%] rake db:fixtures:load
= INSTALLATION
2007 Apr 18
1
Scaffolding Specs
I just wrote a really simple tool that cranks out spec scaffolds for
Rails apps. It''s new and pretty simple, but you might find it useful:
http://calicowebdev.com/blog/show/13
--steve
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.
2006 Aug 07
0
scaffolding extensions plugin
Hi,
I''ve been trying to download the scaffolding extensions plugin [1] for
the past two days. I don''t know for how long the site will be down, but
it seems that''s the plugin that will solve all my problems :), I''d
really like to be able to test it.
Do you know of another plugin with similar functionality?
Does anybody have a local copy to share?
Thanks,
2006 Aug 18
0
Why does scaffolding''s list.rhtml use "foo.send(column.name)" ?
HI all,
I"m using 1.1.6 script/generate scaffolding.
Why does the view/foos/list.rhtml use "foo.send(column.name)" to
display the contents of each column?
I had to change this to "foo[column.name]" to get the display right in
a couple of models. Specifically, one model has a column named
''display'', is that conflicting with something internally to AR ?
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 Jun 06
0
Scaffolding Extension - Polimorphic Associations
When I try to use it with polimorphic associations I get the following
error
In browse action:
activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing'': uninitialized constant Privable
activerecord-1.14.2/lib/active_record/base.rb:1246:in `compute_type''
activesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing''
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
2006 Apr 05
0
[SPAM] Problem with scaffolding on test setup
Yet another newbie question here.
My setup is thus:
I have lighty running with scgi (working fine) on windows XP sp 2.
Rails 1.1 and ruby 1.8.x.
The server and scgi are working. I know this because I can get a test
page to work easily enough.
I did the following:
ruby script\generate model Recipe [following the Rolling with Rails
Tutorial]
ruby script\generate controller Recipe
I also
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 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
2006 Feb 03
0
Re: the dreaded error Before updating scaffolding from new D
Hi Derek,
I was getting this too, with three tables, called taxa,
databases and references
I found I could add an irregular pluralisation for taxa:
Inflector.inflections do |inflect|
inflect.irregular ''taxon'', ''taxa''
end
to the environment.rb, but no amount of modification there would
allow databases and
2006 Feb 07
0
oracle scaffolding
I just got Oracle connectivity working on my Mac rails installation, and
I started with a simple migration to test.
def self.up
create_table "computers", :force => true do |t|
t.column "description", :string
t.column "brand", :string
end
end
def self.down
drop_table "computers"
end
end
This seemed to work, but when I
2006 Feb 11
1
table name and scaffolding
I am setting up my scafolding and I am getting the "you need to create your table" message. My question is I am creating a scafolding for my MessageCategory model. I have a table called messagecategory but I still get that message. What should I name my table so that this will work?
Thanks.
Seth
2006 Feb 13
2
Scaffolding
So what is "best practice" using scaffolding and then manipulating it to
work for you or starting from scratch?
Thanks.
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/0f16d567/attachment.html
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 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 Jan 03
2
Scaffolding - changing number of records per page
People,
This is probably simple but I couldn''t find where to change the default
10 records per page for scaffolding . .
Thanks,
Phil.
--
Philip Rhoades
Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Mobile: +61:(0)411-185-652
Fax: +61:(0)2-8221-9599
E-mail: phil@pricom.com.au