Displaying 20 results from an estimated 100000 matches similar to: "emit scaffold controllers ?"
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
Does anyone know how to link Rails'' routes into anonymous controller
classes created at runtime (defined with their superclass as
ActionController::Base)?
I''m trying to create a plugin for all of my projects that dynamically
creates an active_scaffold controller for each model. It would
essentially be like a scaffold_all_models for active_scaffold. I believe
the original
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
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
2007 Aug 06
0
Problem generating scaffold with a namespace
I''m trying to generate a scaffold based on a model in a namespace and
I would like the controller to have a similar namespace.
Am I thinking that scaffold should be doing something it doesn''t or is
this a bug?
rails version: 1.2.3
ruby version: 1.8.5
OS: OS X 10.4.10
Created a model using
> script/generate model Foo::Bar
creates the model bar.rb in the model/foo directory
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
2007 Jun 25
1
Functional tests and active scaffold: unexpected assertion failure.
Hello,
I''m writing a functional test for a controller that uses active
scaffold.
def test_presence_of_field
login_as(:peter)
profile = Profile.find :first
get :edit, {:id => profile.id}
assert_response 200
assert_select "textarea#record_free_text_ec"
end
I was expecting the first ''assert 200'' to give me a green bar,
but added it for
2006 Oct 02
1
Scaffold problem with PostgreSQL
We are having a problem scaffolding with PostgreSQL. We are following the
depot tutorial from the AWDWR and it gives problems:
$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
2009 Apr 12
0
Heroku Garden - reversing or changing a 'generate scaffold' command
In Heroku Garden, is there a way of reversing or changing a ''generate
scaffold'' command?
I often find I need to make changes to the scaffolded application but
I do not know how to.
''script/destroy scaffold Modelname'' from the console doesn''t seem to
work.
For example, I generated a Product scaffold in Heroku Garden.
When I try to destroy it using the
2008 Jan 30
1
undefined method `scaffold'
Hello,
I have been busy for a while and now I am back to messing with rails.
Last time I tried to use scaffold i worked now I am getting this error.
Not really sure since I am using version 1.2.5 still
NoMethodError in BlogController#index
undefined method `scaffold'' for #<BlogController:0x506eb7c>
Session dump
flash: !map:ActionController::Flash::FlashHash {}
Thanks for any
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 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 Jun 30
3
scaffold usage
is there anyway that scaffold would read the database and I don''t have
to specify any of the columns? it is really frustraiting specially when
you''ve got a lotta cols and tables! I''d like to use rails for an
enterprise app but not a toy app like all those apps in tutorials
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
2008 Apr 01
1
using label tags in scaffold views...how to get the method name?
hi,
i want to use the <label> tag in the scaffold views.
for a text field where the id is id="person_last_name" how can i get
the person_last_name string programmaticaly to use it as a label
parameter <label for="person_last_name">
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Sep 07
0
why scaffold.rhtml?
Hi,
I am using a tutorial "Riding the Rails" and it creates a file "scaffold.rhtml".
when I run scaffold I don''t find any scaffold.rhtml!
Why?
Do I not have something. I get the CRUD.
Thanks in advance
Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"
2006 Oct 12
7
Evil Scaffold
I read the Amy Hoy''s presentation on why scaffold is not a good thing for beginners. For admin
application, is it ok to use 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
2006 Sep 26
1
Error while generating scaffold
Hello,
When I run the command:
"ruby script/generate scaffold Product Admin"
I receive the following error after the usual changed files info:
"Couldn''t find ''product'' generator"
The command is based on "Agile Web Application Development with Rails"
first edition on page: 57. Just to give some context to what I am
doing, I just created
2008 Apr 22
0
numeric (decimal) WITH precision and scale at generate scaffold time?
Hello,
I was wondering if anyone knew if it is (or ever will be ) possible at
all to specify things like precision and scale at generate scaffold
time, and if so how.
Things like price:numeric(8,2) (obviously) just break the script.
Tommy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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
2007 Oct 17
0
Active Scaffold - contract work $75 / hour - 4 to 6 weeks
We need an experienced rails developer to help on a rails project
using Active Scaffold. There are several modules that are needed and
it would probably take 4 to 6 weeks to develop. The rate is $75 per
hour CDN
Please contact me for more details. thanks
James Burrett B.Sc. B.Ed.
james-odGE0sqHoJxAfugRpC6u6w@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
You received
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